riddhi Posted April 23, 2007 Share Posted April 23, 2007 I wish to call another php script as follows cart.php?action=view from another php script named add_cart.php please write code how to accomplish it? Quote Link to comment Share on other sites More sharing options...
mpharo Posted April 23, 2007 Share Posted April 23, 2007 Just add the full url to your file...such as www.phpfreaks.com before the page your calling... include('http://www.phpfreaks.com/cart.php?action=view'); Quote Link to comment Share on other sites More sharing options...
per1os Posted April 23, 2007 Share Posted April 23, 2007 Well it depends on what you want to do. This would work: <?php $_GET['action'] = "view"; include('cart.php'); ?> Or this would also work <?php header("Location: cart.php?action=view"); ?> Quote Link to comment Share on other sites More sharing options...
riddhi Posted April 24, 2007 Author Share Posted April 24, 2007 thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.