Hi All,
I am pretty new to PHP ( I am a C Programmer).
I am trying a simple shopping cart website for my friend.
IN one of the pages, I am submitting some info, which is actually not showing up in my server side php.
Below is the HTML code to submit.
<a href="cart.php?action=add&p=5&size=small"> <img src="images/add_to_cart.gif"/> </a>
I tried to check the values of the parameters using
$action = $_GET['action'] ;
Action stored empty. Then I checked the whole array
print_r($_GET) which returned
Array( )
So, for some reason the value is always empty.
I tried the declaration GLOBAL $_GET, but no use.
Any help/directions - much appreciated!