Jump to content

what's wrong with this function?


nobodyk

Recommended Posts

When ever I put it on my php page I get a blank page. I haven't been able to call the function yet.

function waitmsg($dmsg,$whereto) {
echo "<script language='javascript'>setTimeout("location.href='http://".$site_url."/".$whereto."'",5);</script>";
echo "<br><br><br><div align='center'>".$dmsg."</div><br>";
echo "<div align='center'>Please wait while you're automatically redirect, If you are not forwarded within 5 seconds, please click <a href='http://".$site_url."/".$dmsg.">here</a>.</div><br><br><br>";
}

 

Any ideas?

 

Link to comment
https://forums.phpfreaks.com/topic/210166-whats-wrong-with-this-function/
Share on other sites

Get you a good editor with a syntax highlighter, and you would instantly recognize this problem.

function waitmsg($dmsg,$whereto) {
echo "<script language='javascript'>setTimeout(\"location.href='http://".$site_url."/".$whereto."',5);</script>";
echo "<br><br><br><div align='center'>".$dmsg."</div><br>";
echo "<div align='center'>Please wait while you're automatically redirect, If you are not forwarded within 5 seconds, please click <a href='http://".$site_url."/".$dmsg.">here</a>.</div><br><br><br>";
}

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.