variables are empty when a script recalls itself ($PHP_SELF)
| From: | Sander Peters | Date: | Mon, 08 Oct 2001 21:32:01 +0000 |
| Subject: | variables are empty when a script recalls itself ($PHP_SELF) | ||
| Groups: | php.db php.general | ||
| Request: | Send a blank email to php-db+get-13124@lists.php.net to get a copy of this message | ||
I have the following problem (maybe you know the sollution)
I have a form wich the user can fill up to view certain records in a
database.
The query is like this
$query_string = "SELECT ID, medianr, date, cat, subcat, titel, descr,
nrmedia,
video from movies where 1 and video like \"$video\" and titel like
\"$titel\"
LIMIT 0, $nr ";
all those variables come straight from the form.
The user can also decide how much records he/she wants to see so there's
also
a prev/next mechanism in the script.
The prev/next links have a php_self link so the script calls itself
again but
then with a higher limit (offset) value.
But the big problem is:
all the values from ($titel, $nr, etc) the form are empty!
Is there a way to keep those values when the script recalls himself?
I hope you can help me with this!
Thanks in advance,
Sander Peters - The Netherlands