Reply to Re: Passing on a value to a SUBMIT button - can it be done?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация