Jump to content

giving error


riddhi

Recommended Posts

This is the code Sample...

 

echo "<form name='form1' method='get' action='cart.php?action=view'
        onSubmit=<?

		for ($i=0;$i < count($productId); $i++){
	       $_GET['p']=$productId[$i];     
		       addToCart();
		 }  
		?>";
      echo "<input name='cart' type='submit' value='Add To Cart' />";
  echo "</form>";

 

it is giving error in this line $_GET['p']=$productId[$i];

 

Link to comment
https://forums.phpfreaks.com/topic/48234-giving-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.