yogibear Posted August 22, 2008 Share Posted August 22, 2008 Hi Can you tell me how to fix this, I know the problem is the quotes. I have been trying to copy the fix on http://www.phpfreaks.com/forums/index.php/topic,120612.0.html but have had no luck. echo '<script language="javascript" type="text/javascript"> <!-- window.setTimeout('window.location="http://www.***.co.uk/record/admin/main.php"; ',2000); // --> </script>'; Best wishes yogi Link to comment https://forums.phpfreaks.com/topic/120832-echo-javascript/ Share on other sites More sharing options...
JasonLewis Posted August 22, 2008 Share Posted August 22, 2008 To make it easier, use heredoc syntax: echo <<<html <script language="javascript" type="text/javascript"> <!-- window.setTimeout("window.location='http://www.***.co.uk/record/admin/main.php';",2000); // --> </script> html; Link to comment https://forums.phpfreaks.com/topic/120832-echo-javascript/#findComment-622861 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.