Re: Form Field
| From: | Jack Dempsey | Date: | Tue, 17 Apr 2001 15:10:16 +0000 |
| Subject: | Re: Form Field | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48977@lists.php.net to get a copy of this message | ||
Why don't you just put the quotes outside the php?
<input type="radio" value="<?php echo ('1'.$row[0][0]);?>"
name="R1"><?php echo ($row[0][0]);?>
That will give you
<input type="radio" value="foo" name="R1">foo
-jack
Mike wrote:
>
> What I need to do is append parenthesis to the front and back of
> ('1'.$row[0][0]), but when I do that it doesn't parse correctly. What I'm
> getting now is:
> Value=1San Francisco
> What I need is:
> Value="1San Francisco"
> Thanks
> Mike P
> mpeloso@princeton.edu
>
> ""Mike"" <mpeloso@princeton.edu> wrote in message
> news:9bhfma$hma$1@toye.p.sourceforge.net...
> > Im trying to pass a form variable to anouther page with the following:
> > <input type="radio" value=<?php echo ('1'.$row[0][0]); ?>
> > name="R1"><?php
> > echo ($row[0][0]); ?>
> >
> > Everything works fine if there are no spaces(Buffalo) but if there are
> > spaces ( San Francisco) I only get the first word.I've never had this
> > problem before and I dont know what I did.Any suggestions?
> > Thanks
> > Mike P
> > 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