all, I have this code:
echo "<script>alert('Your contact information has been sent. A respresentative will contact you shortly. You will now be redirected to the website's home page...');
window.location.href='../index.php';</script>";
when i go to the page, nothing happens. however, this shortened message does work:
echo "<script>alert('Your contact information has been sent. A respresentative will contact you shortly.');
window.location.href='../reporting/trafficreport.php';</script>";
my only guess here is that the first code doesn’t work cuz the message string is too long for the alert dialog box to display it on one line? If that is the case, then I need to add line breaks, and I’ve tried almost every type of syntax I know of, using both < br > and < br / > tags inside and outside the quote marks and I still get no action on the page. am I to use \r\n\ or something instead? what is the syntax for fixing this issue? thanks!