Posted by NC on 09/30/05 03:38
Marcel wrote:
>
> I'm creating an application with which I can update values in a MySQL
> database.
> Each row of the database table is a web page with a form. After updating the
> fields, the new values are passed on the database table by pressing the
> Submit-button. So far, no problems. Then I want to go on to the next page,
> so I was hoping that something like this would work:
>
> echo '<form method="GET" action ="de.php?pageno=5">';
>
> But it doesn't. I keep on coming back to page 1.
> What should I be doing?
You should define a hidden field somewhere in the form. Something
like this:
<input type="hidden" name="pageno" value="<?php
echo $_GET['pageno'];
?>">
Cheers,
NC
[Back to original message]
|