Re: Form again

From: Date: Wed, 27 Dec 2000 17:24:35 +0000
Subject: Re: Form again
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31981@lists.php.net to get a copy of this message
Actually, leave out this sentence: > In the HTML form, leave off the dollar sign ($). I was thinking out loud before I saw the real problem. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "<body>" -- Quoted from Yahoo! homepage, http://www.yahoo.com > > Whats wrong with this: > > <input type="radio" value='<?php '$D4' ;?>' > > name='C4'><?php echo "$D4" ;?> > > In the HTML form, leave off the dollar sign ($). > It should be <input type="radio" value="<?php echo > htmlspecialchars($D4);?>" name="C4"><?php echo $D4;?> > ^^^ ^^^^ > notice no single quotes. no double quotes needed. > > htmlspecialchars() is added to prevent characters like ", ', <, >, and > & from showing up in the form, which, if they did, would break the > form. > > > Its in a form. $D4 was passed to this form without a problem (it shows up > > correctly in my table) but Im trying to repass it as C4 but its not working. > > > > This is the recieving form field: > > <td width="100%"><?php echo '$C1';?></td> > > Thanks > > Mike > > mpeloso@princeton.edu > > > > > > > > > > > > -- > > 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 (#31981) next »