php - Only use http refer if from certain page -


i using following code display string url , works fine. however, want use code if initial refering page search page:

<?php      session_start();     if ( !isset( $_session["origurl"] ) )     $_session["origurl"] = $_server["http_referer"];      $mysearchterm = $_server["http_referer"];      $whatiwant = substr($mysearchterm, strpos($mysearchterm, "=") +1);          echo  $whatiwant;     ?> 


Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -