misterx
02-22-2003, 06:43 PM
I'm putting together a little script that I would like to display a message if a certain variable is defined. This is effectively what it looks like right now:
if ("any of the form fields are not filled") {
header("Location: file.php?notfilled=1");
exit;
}
and then down where I want the message to show up...
if (!empty($notfilled)) {
print("You did not fill in one or more of the required fields.\n");
}
And that doesn't work. If I navigate to file.php?notfilled=1 it still won't print that message. And I use this method on other pages!The only thing different about where I'm coding the current script vs. my other ones is this new one is on a Windows server, the other ones are on FreeBSD. Is that what's making the difference?
if ("any of the form fields are not filled") {
header("Location: file.php?notfilled=1");
exit;
}
and then down where I want the message to show up...
if (!empty($notfilled)) {
print("You did not fill in one or more of the required fields.\n");
}
And that doesn't work. If I navigate to file.php?notfilled=1 it still won't print that message. And I use this method on other pages!The only thing different about where I'm coding the current script vs. my other ones is this new one is on a Windows server, the other ones are on FreeBSD. Is that what's making the difference?