Re: html form value in php...

From: Date: Tue, 22 Apr 2003 06:17:24 +0000
Subject: Re: html form value in php...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-144767@lists.php.net to get a copy of this message
There's another way, but dunno with which browser is gonna work or not: how about this: <select name="var[]" id="mySelect"> Now php is gonna take $var as an array when post, and you can use javascript to access the select object as mySelect ----- Original Message ----- From: "Scott Fletcher" <scott@abcoa.com> To: <php-general@lists.php.net> Sent: Tuesday, April 22, 2003 12:02 AM Subject: Re: [PHP] html form value in php... > Found an easier way around to it.. > > All I have to do is to do this using the javascript innerHTML using the div > tag and create a different name of a variable and make it be of an array... > > Like this... > > echo "<input type='hidden' > name='HiddenValue["+x+"]'>"; > > That help because I have two list boxes that need to be carry over and be > put into the database.... > > Thanks... > > "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 > >

« previous php.general (#144767) next »