Help with form validate script and the way it handles redirections.
| From: | jhj hjhjhj | Date: | Mon, 11 Mar 2002 21:47:12 +0000 |
| Subject: | Help with form validate script and the way it handles redirections. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88097@lists.php.net to get a copy of this message | ||
Hey People:
I made a form validator script, it redirects you back
to the page you were
before if you have an error. To do this iam putting a
hidden entry that is
$REQUEST_URI . So if the script needs to redirect you
back itll do this:
header("Location:
?$reference&message=another_message");
The problem with this is that the form is put as an
include in many pages, some
people access the page from index.php others from
index.php?page=21 So if they
are accessing it from plain index.php itll add a & (as
you saw on the code)
but
i guess this is ok? or anybody know of a better way to
do this?
Josepablo
_________________________________________________________
Do You Yahoo!?
La emoción e intensidad del deporte en Yahoo! Deportes. http://deportes.yahoo.com.mx