Posted by Gordon Burditt on 05/20/06 22:42
>I have a short query if anyone can help me with it I will be gratefull.
>
>I have a php form, and have put the php code within the form itself. On
>activation the form calls itself:
>
><form action="Thisformitself.php">
>
></form>
>
>Problem is when I do this all the selections(eg list selections) the
>user has made are reset to null, and the form has no way of knowing
>what the user chose prior to pressing the submit button.
This is the way it is supposed to work. Page hits are independent
of each other.
If you want the information to carry over, the PHP page generating
the HTML needs to carry it over (e.g. take values from $_POST[] and
insert VALUE="..." in input HTML input elements, put SELECTED in
the appropriate location in list selections, etc.)
Gordon L. Burditt
[Back to original message]
|