Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

echo.... some echoo newbiee... me....

Status
Not open for further replies.

BaBe

MIS
May 17, 2001
1
GB
guys help me with this... im trying to echo this statement:

<a href=&quot;javascript:Start(' javascriptsource.com</a>

i tried:

echo &quot;<a href=\&quot;javascript:Start(' javascriptsource.com</a> &quot;;

it never did work.. newbie..
Error: Unexpected character in input: '\' (ASCII=92) state=1

I just want to echo/print &quot;<a href=&quot;javascript:Start(' javascriptsource.com</a> &quot; into my php... simillar to the output of echo &quot;Hello World&quot;; :)


Tnx....
 
what is ?
I think it should be something like this
you can send the whatever variable to files, not domains, without the $ sign.
You only use the $ in the whatever file to manipulate the variable.

the link should be something like this then:

$url = &quot;
print(&quot;<a href=''javascript:Start(&quot;.$url.&quot;)'>Open javascriptsource.com</a>&quot;);

Put the url in a separate variable, it's much easier ;-)
That should do the trick
 
sorry, a typ-o ;-)

print(&quot;<a href='javascript:Start(&quot;.$url.&quot;)'>Open javascriptsource.com</a>&quot;);

There that's better
Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top