Forum Moderators: coopster

Message Too Old, No Replies

PHP Problems

         

holmags

1:15 pm on Apr 25, 2006 (gmt 0)

10+ Year Member



Hi I have been trying to implement a redirect function which redirects the user to the originating page whenever they add something to a basket. The code works fine in PHP 5 but in php 4 it doesn't work. At the moment I have this really weird error where I submit to a different page(cart_func.php) and the output on the first page(buy.php) gets displayed. The problem with this is that I've taken all the code out of the second page(cart_func.php) and it still displays all the information from the buy.php page.

Can anyone help?

I'm using IIS 5.1 and the PHP version that its being tested on is 4.4.0.

thanks

holmags

ahmedtheking

4:06 pm on Apr 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are you storing the basket info? Is it sessions/cookies?

holmags

12:02 pm on Apr 28, 2006 (gmt 0)

10+ Year Member



Hi,

Sorry for taking a while to reply been a bit busy. Anyway I'm using cookies to store the information. Tried using the site on Apache with the same version of PHP and it worked without any problems. I'm guessing that its an IIS issue with cookies/sessions. Don't really understand why I was having that problem though.

thanks

holmags