Header("Location: ... or Header("Refresh: 0;...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'd really appreciate your advice with this one... 

I have a cart. Visitors can browse a catalogue, click 'Add to cart', and are
taken to the shopping cart with the new item added...

This is working perfectly for 99.9% of visitors, although 2 separate support
calls have reported they don't get redirected (catalogue page remains in
address bar), and the page doesn't load (blank white page with 'Done' in the
status bar).

Now I'm guessing this has something to do with the header command I'm using:

header ("Refresh: 0; URL=cart.php?action=add&id=$reference&c=$cat&p=$page");
exit;

I'm guessing the header isn't working, but the exit does, hence no page
load.

I've searched the web and some contributors say Refresh shouldn't be used,
and others say that a 0 Refresh is exactly the same is the same as a
'Location' header command. But is even related to my problem?

The user concerned has the same browser version and privacy settings as me.
I can get them to re-test, but would like to be fairly confident as to the
problem before I do... :)

What are your thoughts? Thanks in advance for your help.

Best regards,

Kevin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux