-2

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?

1 Answers1

0

As mentioned in the comments, use $_GET:

<?php

$function = $_GET['function'];

echo $function;

?>
Emre Koc
  • 1,481
  • 10
  • 18