Re: Re: quotes
| From: | chris sherwood | Date: | Wed, 25 Jun 2003 18:49:45 +0000 |
| Subject: | Re: Re: quotes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152916@lists.php.net to get a copy of this message | ||
echo "<input name='company' type='text' value='".
htmlentities($company)
."'>";
this doesnt work cause the engine doesnt like that
try this
echo "<input name='company' type='text' value='".(
htmlentities($company))
."'>";
"Anthony" <atampone@attechcomputer.com> wrote in message
news:<20030625183749.25154.qmail@pb1.pair.com>...
> tough to tell... but it looks like you have the " and ' mixed up before
the
> > in the end :-P
>
> - Anthony
>
> "Lso ." <lukas__scott@hotmail.com> wrote in message
> news:LAW8-F68WYdnHDJcxdV00049a74@hotmail.com...
> > ok i see why i didnt work but i dont know why.
> >
> > can anyone tell me why this works:
> >
> > <input name="testfield" type="text" value="<? echo
> htmlentities($company)
> > ?>">
> >
> > but this doesn't:
> >
> > echo "<input name='company' type='text' value='".
> > htmlentities($company)
> > ."'>";
> >
> > Lucas Owens
> > www.lucasowens.com
> > www.technoiraudio.com
> >
> > _________________________________________________________________
> > Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> > http://join.msn.com/?page=features/featuredemail
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>