I'm trying to send a javascript dictionary variable to php
using ajax with javascript/jquery $.get
method, but it produces an error.
Here is the javascript:
$.get( "contr.php", { max: "max", max2: "max2" } );
and php :
$max = $_GET['max'];
var_dump($max);
- jquery works
- javascript
$.get
works
The php error is:
undefined index max
What am I doing wrong.