Re: [PHP] Include " quotes inside textbox

2001-02-02 Thread Christian Reiniger

On Thursday 01 February 2001 19:07, Karl J. Stubsjoen wrote:

> I'm trying to pass back a link to the user in a textbox (so they can
> copy and paste it elsewhere), however my textbox is being parsed
> incorrectly by the browser because of the " quotes which happen in the
> link I'm passing - basically the HTML for the text box is getting
> parsed together with the HTML for the passed link and  the results
> are messed up.

I think you want to use htmlentities ():

echo "" . 
  htmlentities ($Content) . "";

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."

- Isaac Asimov

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Include " quotes inside textbox

2001-02-01 Thread Chana Black

If you want to put a " in an echo statement, you need to escape it first by 
putting the / before it, like /"

The function addslashes does this for you.

CB

At 11:07 AM 2/1/01 -0700, Karl J. Stubsjoen wrote:
>Hello,
>
>I'm trying to pass back a link to the user in a textbox (so they can copy
>and paste it elsewhere), however my textbox is being parsed incorrectly by
>the browser because of the " quotes which happen in the link I'm passing -
>basically the HTML for the text box is getting parsed together with the HTML
>for the passed link and  the results are messed up.
>
>How do you pass quotes to a textbox?
>
>Thanks!
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Include " quotes inside textbox

2001-02-01 Thread Karl J. Stubsjoen

Hello,

I'm trying to pass back a link to the user in a textbox (so they can copy
and paste it elsewhere), however my textbox is being parsed incorrectly by
the browser because of the " quotes which happen in the link I'm passing -
basically the HTML for the text box is getting parsed together with the HTML
for the passed link and  the results are messed up.

How do you pass quotes to a textbox?

Thanks!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]