Forms and IE
| From: | Sean Hurley | Date: | Mon, 11 Feb 2002 04:40:00 +0000 |
| Subject: | Forms and IE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84226@lists.php.net to get a copy of this message | ||
Please forgive me if this has been covered before. I have searched the list and could not find reference to a similar problem.
I am completetly new to PHP and I am stuck. I am creating a very simple form. Essentially the user agrees or disagrees to a message. If the user agrees, they are sent to another form. It they disagree they are sent home.
My script works with Netscape and Opera but not Internet Explorer (ver 6.0.2) and I cannot figure out why. As I said it is very simple and the relevant parts are displayed as follows:
<form method="post" action="agree.php>
......
I have read the terms and Agree <input type="checkbox" name="agree[]" value="agree"> I Do Not Agree <input type="checkbox" name="disagree" value="disagree">
<input type="submit" name="submit" value="Submit">
.......
"agree.php"
<?
if ($agree) /* (I have tried this also with ($isset = $agree)) */
{ header ("location: ?link=form");
}
else
{ header ("location: /LETS");
}
?>
As I said, this works fine with Netscape and Opera but not IE.
Any suggestions and/or advice is appreciated.
Thanks.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx