Jump to content

[SOLVED] echo with special characters


anauj0101

Recommended Posts

I am trying to echo

 

<a href="fear1.jpg" onclick="change('fear1.jpg'); return false;">fear1.jpg</a><br>

 

I'm using this code and i probably have it all messed up. please help

 

echo "<a href=\"" + $file +"\" onclick=\"change(\'" + $file + "\')\; return false\;\">"+ $file + "</a><br>";

 

Link to comment
https://forums.phpfreaks.com/topic/160318-solved-echo-with-special-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.