You are here: Re: Variable extracted out of one form not there anymore after submitting another form « PHP Programming Language « IT news, forums, messages
Re: Variable extracted out of one form not there anymore after submitting another form

Posted by Juliette on 08/11/06 03:34

mootmail-googlegroups@yahoo.com wrote:
> damn wrote:
>> What's the correct way to go about this?
>
> Perhaps the easiest solution is to populate hidden form elements with
> the values you wish to persist from the previous form. This way, those
> values will be available in the $_REQUEST array when you submit the
> form again.
>


Alternatively, if the two forms are shown at the same time on the page,
change your code to one form instead of two and use different values for
the submit button of the 'virtual two' forms.
In your php script, all (filled in) $_POST values will then be
available, and you can let your script decide what to do based on the
value of submit.

Grz, Jrf

 

Navigation:

[Reply to this 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

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