Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #13906
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: html php form second drop down select dependant list to keep selected value |
| Date | 2014-06-19 13:08 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lnv5dg$mn7$1@dont-email.me> (permalink) |
| References | <37222863-7713-4549-882a-ede165dc1c80@googlegroups.com> |
On 6/19/2014 12:20 PM, ba pa wrote:
> Hi,
>
> Is there a way to have the second drop down select list to keep the selected value after user hits submit?
>
> <select class="select_Y" name="FLexA" id="LexikA">
> <option value="0" >Please choose a context...</option>
> <option value="1" <?php if (@$_POST['FLexA']==1) {echo "selected='selected'"; } ?> >Human nature , Health, Ethic, Religion...</option>
> </select>
>
> <select class="select_Y" name="FLexB" id="LexikB" jqsd:depends_on="LexikA" jqsd:hide_mode="disable">
> <option value="0" rel="0" >Please choose...</option>
> <option value="2" rel="1" <?php if (@$_POST['FLexB']==2) {echo "selected='selected'"; } ?> >Business, Law, Financezzz...</option>
> <option value="3" rel="1" <?php if (@$_POST['FLexB']==3) {echo "selected='selected'"; } ?> >Sport, competition...</option>
> </select>
>
> Thansk,
> Pascal
>
The best way to save values across pages is in the $_SESSION superglobal.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
html php form second drop down select dependant list to keep selected value ba pa <pppbbb10@gmail.com> - 2014-06-19 09:20 -0700
Re: html php form second drop down select dependant list to keep selected value Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-19 13:08 -0400
Re: html php form second drop down select dependant list to keep selected value ba pa <pppbbb10@gmail.com> - 2014-06-19 10:22 -0700
Re: html php form second drop down select dependant list to keep selected value Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-19 16:45 -0400
Re: html php form second drop down select dependant list to keep selected value ba pa <pppbbb10@gmail.com> - 2014-06-19 14:40 -0700
csiph-web