Quote:
|
I have a form in PHP that I want to redirect after successfull input... I found the header() function... The only problem is that the url doesn't change it keeps the same page.
|
you can have the PHP script perform all you want without 'redirect's using header(). Not good to use after any PHP output, as you see with the url/post issue (not real redirect!).
try:
if ($firsttime)
{ //show form
}
else if ($formsubmit)
{ //check required
if ($goodinput)
{ //show results
}else
{ // prompts the user for the missing field
}
===
If you want to change the url for '$goodinput' but not the other stuff, you can(couple, if not a few ways), but you might want to rethink the flow of events/scripts.