riddhi Posted April 23, 2007 Share Posted April 23, 2007 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 More sharing options...
Guest prozente Posted April 23, 2007 Share Posted April 23, 2007 double post http://www.phpfreaks.com/forums/index.php/topic,137318.msg581016.html#msg581016 Link to comment https://forums.phpfreaks.com/topic/48234-giving-error/#findComment-235824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.