What you can do is replicate all <OPTION>s with hidden fields:

<SELECT name="myselect[]">
<OPTION value="1">Al di Meola</OPTION>
<OPTION value="2">John McLaughlin</OPTION>
...
</SELECT>

<INPUT name="replica[1]" type="hidden" value="Al di Meola" />
<INPUT name="replica[2]" type="hidden" value="John McLaughlin" />
...

But I fail to see why so doing would be useful. Your dynamic form is created
after some query; therefore why not simply call the same query after
submission to obtain all possible values of the options?

Or perhaps I failed to understand your problem.

HTH
Ignatius
_________________________
----- Original Message -----
From: "André Sannerholt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 6:42 PM
Subject: [PHP-DB] Keeping entries of a select-box after submitting the form


> Hi everyone,
>
> Well, I have already formulated my problem several times, always in a
> different way, but yet I have no solution.
>
> I try to say it as easy as it gets:
>
> I simply want one specific selction-box to 'keep' ALL options present
after
> having submited the form!
>
> I'm thinking about a variable or something that contains all that options,
> and not just only ONE like the value-variable.
>
> I hope this is clear now.
>
> Regards,
>
> André
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to