Posted by rf on 12/29/07 01:41
"Matt" <guitarromantic@gmail.com> wrote in message
news:2f09a658-fe5e-44bb-811e-b259100f3661@x69g2000hsx.googlegroups.com...
> Am I right in thinking that this code doesn't work in Safari? I've
> just written a PHP script for posting comments which uses a meta
> refresh to reload the page so the user can't hit Reload and duplicate
> their comment. I added a 'click here to continue' link underneath the
> 'you will now be redirected' message, but this isn't ideal - is there
> any way to solve this besides using a header redirect? I don't really
> want to do that since I'll have to strip all my PHP processing code
> into a different file and such.
The only reliable way to do the redirect is server side. Once you realize
this you would write your PHP accordingly. It's not much different, simply
do the redirect immediately after your existing PHP code updates the
database.
--
Richard.
[Back to original message]
|