We have a form that works fine on the apache server, but on our windows box now causes the form when posted to itself just refresh. At the beginning of the code it has a function where it creates globals:
[php]
function displayForm() {
/* Make variables global */
global $applicationState;
global $submitted;
[/php]
I thought this might be the problem, but not sure. I moved some things around, and got the form to post and show the other parts of the form, but I should have to. It should just work. I can go through and do a crap load of editing, but this isn’t our code, and I don’t remember much from my php days.
I am also trying to evaluate a drop down list, and the original code is this:
[php]
if (isset($applicationDay)) {
$applicationDay = trim($_POST[‘applicationDay’]);
} else {
$applicationDay = “”;
}
[/php]
That doesn’t work, but something like this does:
[php]
if ($applicationMonth !== “”) {
$applicationMonth = trim($_POST[‘applicationMonth’]);
} else {
$applicationMonth = “”;
}
[/php]
Can you even use a friggin !== :o
I highly doubt that means not equal, but guess what, it works.
So I am very confused and could use some help.
Thanks!