Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

Re: [PHP3] common problem -- href's and quotes From: Alain Samoun (alain <email protected>)
Date: 08/17/99

You have to escape (\) the quotes (")
One way to do it:
function GetLink() {
 echo"
.... probably some HTML tags
...
<A HREF = \"htp://www.news.com\"> A news site</A>
...";
}

> This must be a common problem, yet every solution I have put together
> appears very clumsy.
>
> I want to create a link in a web page. I have a function , call it
> GetLink that returns a url. I want to write the html href code.
>
> So the end result I want is :
>
> <A HREF = "htp://www.news.com"> A news site</A>
>
> My problem is getting the pesky double quotes into the expression.
> Evrything I have done is clumsy and confusing.
>
> What's the easy way?
>
> Regards,
> John
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>