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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -