RE: [PHP] Re: Anyone Up?

From: Date: Fri, 01 Feb 2002 08:50:54 +0000
Subject: RE: [PHP] Re: Anyone Up?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83085@lists.php.net to get a copy of this message
You're wrong here, my friend. You can have any value you like. value="@£$ASDFSDF ASDP fosifu @}{$#%/&@ " would work. Niklas -----Original Message----- From: hugh danaher [mailto:hdanaher@earthlink.net] Sent: 1. helmikuuta 2002 10:48 To: Luke Welling Cc: Php-General Subject: Re: [PHP] Re: Anyone Up? I think you'll need something like this: VALUE=\'Your Name1\' / /single quote marks I believe (and I certainly could be wrong). otherwise it'll truncate at 'Your' of course, if this is what you want... Hugh ----- Original Message ----- From: "Luke Welling" <luke@tangledweb.com.au> To: <php-general@lists.php.net> Sent: Thursday, January 31, 2002 11:50 PM Subject: [PHP] Re: Anyone Up? > > "Jtjohnston" <taylorjo@collegesherbrooke.qc.ca> wrote in message > news:3C5A44F5.762CDFB4@collegesherbrooke.qc.ca... > > Luke is that 6:47 pm tomorrow? :) You lost an entire day! Enough Oz > > Jokes. Here is my predicament in Canada :-) > > > > $varname = "Check".$i; > > > > $varname = "Check1" but I want $varname = "Your Name1" to "Your > > Name12". > > > > One more try? :) > > > > <INPUT TYPE="checkbox" NAME="Check1" VALUE="Your > > Name1"> <INPUT > > TYPE="checkbox" NAME="Check2" VALUE="Your Name2"> > > <INPUT > > TYPE="checkbox" NAME="Check3" VALUE="Your Name3"> etc. > > > > for ($i = 1; $i <= $NMax; $i++) > > { > > #$varname = "$Check".$i; > > $varname = "Check".$i > > #echo $varname; > > if ($varname) > > echo "$varname = $i<br>"; > > } > > In that case it is easy, I did not know that the ids were just 1 to > 12, I thought they could be anything spat out by the database. > > How about something like this: > > for ($i = 1; $i <= $NMax; $i++) > { > $varname = "Check".$i > if (isset($$varname) > echo $$varname."<br>"; > } > > Luke Welling. > -- > PHP and MySQL Web Development > by Luke Welling and Laura Thomson > http://www.amazon.com/exec/obidos/ASIN/0672317842 > > > > > > -- > 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 > -- 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

« previous php.general (#83085) next »