PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
if((!strstr($_POST[hrsdwn1] , ":")) || (!strstr($_POST[hrsdwn2] , ":")))
{
echo '<script>alert("Times were not inputted in the correct format! Use format 00:00 - 24:00");</script>';
echo '
<META http-equiv="refresh" content="
0;URL=log_new.php?dwntime_day=$_POST[theday];&dwntime_month=$_POST[themonth]&dwntime_year=$_POST[theyear]">';
exit;
}
It doesn't work to pass the variables... Anyone know how to do it or perhaps an alternate method?
Double quote strings attempt to parse variables in them. Single quote strings do not. You are using the latter. Make the documentation on strings more clear now?