Jump to content

what is the problem?


riddhi

Recommended Posts

echo "<br /><br />";
      echo " <div align='right'> ";
      echo "<form name='form1' method='post'>";
  echo "<input name='cart' type='submit' value='Add To Cart' />";
  echo "</form>";
  echo "</div>";
  
  if(isset($cart)){
    for ($i=0; $i < count($productId); $i++)
         {
           $_GET['p']=$productId[$i];
	    addToCart();
         }		

          $_GET['action'] = "view";
          include('cart.php');
  }	

 

  when I click the button budget.php is called instead of cart.php what is the remedy?

Link to comment
https://forums.phpfreaks.com/topic/48577-what-is-the-problem/
Share on other sites

thanks for pointing out but the latter part of the script is not working ie. this part

 

 if(isset($cart)){
    for ($i=0; $i < count($productId); $i++)
         {
           $_GET['p']=$productId[$i];
	    addToCart();
         }		

          $_GET['action'] = "view";
          include('cart.php');
  }

Link to comment
https://forums.phpfreaks.com/topic/48577-what-is-the-problem/#findComment-237897
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.