php3-list | 199908
Date: 08/17/99
- Next message: Dick Cunningham: "[PHP3] For Loop?"
- Previous message: Robert Aden: "Re: [PHP3] Cookies"
- In reply to: John Lederer: "[PHP3] common problem -- href's and quotes"
- Next in thread: Rick Beebe: "Re: [PHP3] common problem -- href's and quotes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Dick Cunningham: "[PHP3] For Loop?"
- Previous message: Robert Aden: "Re: [PHP3] Cookies"
- In reply to: John Lederer: "[PHP3] common problem -- href's and quotes"
- Next in thread: Rick Beebe: "Re: [PHP3] common problem -- href's and quotes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

