Possible Duplicate:
PHP: “Notice: Undefined variable” and “Notice: Undefined index”
I have an pre-done php file thats help me read from an xml file. The problem is when im calling it from the html file ill get the undefined index.
I know Im missing something, but cant seem to know how to double? implement them in the get string.
xmlhttp.open("GET","prod.php?category=1"+str,true);
xmlhttp.send();
and the error message is pointing om row 7 in my PHP file where it says
$products = $_GET['products'];
If i change my GET file from category=1 to prodicts=1 i get the error in row 6 where the
$category = $_GET['category']; variable is.
Any ideas ?
thanks.