Re: ECHO $variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



the way i posted worked fine with out either... he doesn't need to use these
to format the way his output is displayed, he only needs to use the proper
php syntax if i am correct.
----- Original Message ----- 
From: "Penthexquadium" <penthexquadium@xxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Sunday, October 08, 2006 1:41 AM
Subject: Re:  ECHO $variable


> On Mon, 9 Oct 2006 00:23:00 -0700, "benifactor" <snorris17@xxxxxxx> wrote:
> > you should try this...
> >
> > $saved_message_title = '1 Peter 5:7 "Cast all your cares on Him for He
> > cares about you"';
> > ----- Original Message ----- 
> > From: "Ron Piggott (PHP)" <ron.php@xxxxxxxxxxxxxxxxxx>
> > To: "PHP General" <php-general@xxxxxxxxxxxxx>
> > Sent: Saturday, October 07, 2006 11:39 PM
> > Subject:  ECHO $variable
> >
> >
> > > In one of my scripts I have
> > >
> > > <input type=text name="message_title" size=40 maxlength=80
value="<?echo
> > > $saved_message_title;?>">
> > >
> > > where
> > >
> > > $saved_message_title is 1 Peter 5:7 "Cast all your cares on Him for He
> > > cares about you"
> > > --- note the "
> > >
> > > When this is displayed on the screen $saved_message_title reads
> > >
> > > 1 Peter 5:7
> > >
> > > I am assuming the " closes the value=
> > >
> > > How may I echo this to the screen and have the full text be displayed,
> > > not just 1 Peter 5:7 ?
> > >
> > > Ron
> > >
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> His problem is in HTML, not PHP.
>
> Uses htmlspecialchars() or htmlentities() to convert special characters
> to HTML entities. The double quote will becomes "&quot;" so that it can
> be display correctly.
>
> --
> Sorry for my poor English.
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux