Re: Form again

From: Date: Wed, 27 Dec 2000 17:22:04 +0000
Subject: Re: Form again
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31979@lists.php.net to get a copy of this message
> Date: Wed, 27 Dec 2000 12:17:08 -0500 > From: Mike <mpeloso@princeton.edu> > To: php-general@lists.php.net > Subject: [PHP] Form again > > 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 > >

« previous php.general (#31979) next »