I want php to work if a special header is sent with javascript. The javascript code looks like
indow.location.href="index.php?function=ladegueter";
How detect with php if this url is called?
I want php to work if a special header is sent with javascript. The javascript code looks like
indow.location.href="index.php?function=ladegueter";
How detect with php if this url is called?
As mentioned in the comments, use $_GET
:
<?php
$function = $_GET['function'];
echo $function;
?>