Topic: how do i format a hyper link inside

how do i format a hyper link inside of a echo statement?

example:

<?php
echo " http://punbb.org";
?>

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: how do i format a hyper link inside

try this:
echo '<a href="url">Text to be displayed</a>';

3 (edited by quaker 2008-08-22 14:25)

Re: how do i format a hyper link inside

im not trying to do a hyper link.
im working on a php file that export information to a xml.

$xmlString="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <playlist>
    <trackList>";

i used this.

this was the hyperlink that i needed to export from php to the xml

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

4

Re: how do i format a hyper link inside

Enclose it within single quotes and you don't need to escape the double quotes, i.e:

$xmlString = '<?xml version="1.0" encoding="UTF-8"?>'."\n".'<playlist><trackList>';

Re: how do i format a hyper link inside

thanks... im working on a flash gallery but i want the php file to export the xml



Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!