Forum Moderators: coopster
Here is a sample of the code I am working with. Does anyone see anything wrong?
echo '<html>';
echo '<head>';
echo '<script type="text/javascript" src="/uploads/File/Javascripts/new_window_max.js"></script>';
echo '</head>';
echo '<body>';
echo '<a href=\"javascript:void(0);\" onclick=\"fullScreen(\'/uploads/File',$row['map'],'\');\">Map</a><br>';
echo '</body>';
echo '</html>';
No need to escape double quotes if you are echoing within apostrophes. Change this line:
echo '<a href=\"javascript:void(0);\" onclick=\"fullScreen(\'/uploads/File',$row['map'],'\');\">Map</a><br>';
to this:
echo '<a href="javascript:void(0);" onclick="fullScreen(\'/uploads/File',$row['map'],'\');">Map</a><br>';
dc