PDA

View Full Version : Php redirect ?


chad777
09-18-2002, 07:07 AM
What I am trying to do is after a form is submitted

it will redirect to another page

well the forum is in php not html and the action is php_self

what php code would I use to redirect to another page example thank you?

so how can I redirect not using function.header and not using a form to do it ?



(((((NEVER MIND!!! :) I GOT IT

jamoss
09-20-2002, 06:11 PM
HEADER("Location: pageyouwannaredirectto.html");
exit;

DON'T FORGET THE EXIT!

TECK
09-21-2002, 12:49 PM
are talking about vBulletin or an ordinary page?

chad777
09-21-2002, 01:00 PM
:) i was talking about a regular page but then I figured it out....

also thanks jamoss :0 i had already gotten :)

I didn't wnat to use the exit because the I wante dthe php to run the redirected page

Thanks guys

Allowee
09-28-2002, 04:34 PM
Originally posted by jamoss
HEADER("Location: pageyouwannaredirectto.html");
exit;

DON'T FORGET THE EXIT!

do i got a header already send error if i don't use the exit; function?

and where should i put it?
i got 1 index on my site, 1 add, 2 edit and 1 remove script on my site
there is 1 edit.php file which posts to itselfs and i get a header already send error
i got the header on every page, exapt the index.php and the edit.php because i get an error