i was wandering how i could hide content of a page based on the page you are located , i did this with the code from below , however i was wondering how i could hide a page that is generated dynamically for example index.php*?id=……*.
Is there a php function that i could use that would say disregard all that is after .php so don’t take into consideration ?id=.. .
if($_SERVER['PHP_SELF'] != "/3uboats/index.php"){
CONTENT TO HIDE
}
If i was not clear plz ask for clarification , thanks all in advance
i want to hide content for this page stampa_fattura_partenza.php?id_prenotazione_partenze=1 the 1 is generated by php , its dynamic
You should better not use
$_SERVER['PHP_SELF']that is insecure. You could check if a variable is set by this code:This should work for your example.