Re: html form value in php...
| From: | Scott Fletcher | Date: | Mon, 21 Apr 2003 20:52:17 +0000 |
| Subject: | Re: html form value in php... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144720@lists.php.net to get a copy of this message | ||
Nice!! Thanks for the info... I think I'll stick to what I'm doing because
trying to make it work with non-ie browsers is more of a hassle if I have to
specify some browser detection and many if statements...
Yea, it's a good thing that it's not a php problem.
"Salah Faya" <salah@e-touch.ws> wrote in message
news:01c701c30845$ab7716a0$e10d10ac@compaq2002...
> You still can use javascript like this:
> var obj = document.all['mySelect[]'];
> instead of
> var obj = document.all.mySelect[] which will not work
>
> And anyways it's not a php problem any more ;)
>
> ----- Original Message -----
> From: "Scott Fletcher" <scott@abcoa.com>
> To: <php-general@lists.php.net>
> Sent: Monday, April 21, 2003 11:44 PM
> Subject: Re: [PHP] html form value in php...
>
>
> > I can't change the var to var[] in this example because I had already
> > written lot of javascript that deal with accessing hte SELECT tags. So,
> > javascript doesn't know what to do with the form name that end in []
> because
> > javascript see it as an array, not a variable name....
> >
> > Look like I'll have to do it the long way. That is by using the '<input
> > type='hidden' name='row_1' value="33">'.... Etc...
> > It's the only
way...
> >
> > Scott F.
> >
> > "Scott Fletcher" <scott@abcoa.com> wrote in message
> >
> > news:407C24B48108D7119DAA0002B3252E70018460@abcmail.abcoa.com...
> > > I'll give this a shot. I'll let you know...
> > >
> > > Thanks,
> > > Scott
> > >
> > > "Salah Faya" <salah@e-touch.ws> wrote in message
> > >
> > > news:<013201c3083d$dcff9330$e10d10ac@compaq2002>...
> > > > do this <select name="var[]" size=4 multiple>
> > > > instead of <select name="var" size=4 multiple>
> > > > and you will get $_POST['var'] as an array with all selected values.
> > > >
> > > > ----- Original Message -----
> > > > From: "Scott Fletcher" <scott@abcoa.com>
> > > > To: <php-general@lists.php.net>
> > > > Sent: Monday, April 21, 2003 10:41 PM
> > > > Subject: [PHP] html form value in php...
> > > >
> > > >
> > > > > Hi!
> > > > >
> > > > > I do know that if I use any TEXTBOX or HIDDEN value in html
and
> > > > > click the SUBMIT button,. After going to the next webpage, I can
> > > > > find the data
> > > > in
> > > > > the $_POST[''] data.... But what about the SELECT attribute for
> > > > > multiple rows. (Sort of work like a List box)? I haven't seen
> > > > > anything liek this that would work, so do I have to use the input
> > > > > HIDDEN value instead, like entering or updating each row of the
> > > > > SELECT tag instead?
> > > > >
> > > > > Thanks,
> > > > > Scott
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit:
> > > > > http://www.php.net/unsub.php
> > > > >
> > > > >
> > > >
> > > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>