Re: Form's : making me sick!
| From: | Papp Gyozo | Date: | Sun, 18 Nov 2001 09:56:09 +0000 |
| Subject: | Re: Form's : making me sick! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75027@lists.php.net to get a copy of this message | ||
> I just want to know how to make a <form> inside a <form> get to respond or
> dont make any browser errors?
This is prohibited by either SGML DTDs if HTML
4.01(http://www.w3.org/TR/html4/interact/forms.html#h-17.3):
<!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
and XML DTDs of XHTML 1.0 (http://www.w3.org/TR/xhtml1/#prohibitions)
"form
cannot contain other form elements."
So, it is a good reason why browsers don't like it.
Respect to your original problem, value of element <select> can be changed by JavaScript
without submitting the whole form.
Here is a little example (this behaves like a combobox ,common input + select with history list):
<input type="text" name="combo_input" style="width:5em"
onKeypress="combo_select.value=''; return true;"><br>
<select name="combo_select" style="width:5em" tabindex=-1
onChange="combo_input.value=combo_select.value; return true;"
onFocus="this.blur; return true;">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
</select>
----- Original Message -----
From: "Steve Maroney" <steve@stevenet.dhs.org>
To: "George Pitcher" <fmdev@yahoo.co.uk>
Cc: "De Necker Henri" <deNeckerH@ford.co.za>; "PHP-General (E-mail)"
<php-general@lists.php.net>
Sent: Saturday, November 17, 2001 8:18 PM
Subject: Re: [PHP] Form's : making me sick!
> Thats sounds right becasuse anything between <form> ... </form> can only
> will be passeed only to one script.
>
> Steve
>
> On Tue, 13 Nov 2001, George Pitcher wrote:
>
> > I don't think that you can nest forms.
> >
> > George
> >
> > ----- Original Message -----
> > From: "De Necker Henri" <deNeckerH@ford.co.za>
> > To: "PHP-General (E-mail)" <php-general@lists.php.net>
> > Sent: Tuesday, November 13, 2001 1:09 PM
> > Subject: [PHP] Form's : making me sick!
> >
> >
> > > I just want to know how to make a <form> inside a <form> get to respond
> > > or
> > > dont make any browser errors?
> > >
> > > It looks someting like this :
> > >
> > > <form>
> > > <input type = "text">
> > > <input type = "text">
> > > <form>
> > > <select onchange = "this.form.submit();"> //This must
> > > change the next <select> values !
> > > </select>
> > > </form>
> > > <select>
> > > //this values must be cahnge
> > > </select>
> > > </form>
> > >
> > > Everthing is working fine but i just cant get the two forms to work
> > > together.If i only can get some ideas on what action,or onchange values to
> > > change it will be greatfull!
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
>
>
>
>
>
>
> Thank you,
> Steve Maroney
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>