Jump to content

where is the problem-simple


riddhi

Recommended Posts

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

The line $_GET['p']=$productId[$i]; is giving this message

 

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or

 

`T_NUM_STRING' in f:\program files\easyphp1-8\www\plaincart\budget.php on

 

line 145

 

 

Link to comment
https://forums.phpfreaks.com/topic/48232-where-is-the-problem-simple/
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.