Hi, I am moving from ASP to PHP but am having trouble with even the simplest task. I want to pass a parameter from a form to a processing page. Here is the code of both files:
MyForm.html
<html>
<head>
<title>my form</title>
</head>
<body>
<form action=process.php METHOD=post>
<input type=checkbox name=mychoice value="210">
<input type=submit value=Confirm>
</form>
</body>
</html>
process.php
<html>
<head>
<title>process form</title>
</head>
<body>
<?php echo ($mychoice);?>
</body>
</html>
So I go to IIS, select MyForm.html, and browse it. It opens up in Internet Explorer. I tick the box and click SUBMIT. The PHP page opens and gives an error "Notice: Undefined variable" for the form checkbox "mychoice".
How can I fix this?
Thanks,
May
MyForm.html
<html>
<head>
<title>my form</title>
</head>
<body>
<form action=process.php METHOD=post>
<input type=checkbox name=mychoice value="210">
<input type=submit value=Confirm>
</form>
</body>
</html>
process.php
<html>
<head>
<title>process form</title>
</head>
<body>
<?php echo ($mychoice);?>
</body>
</html>
So I go to IIS, select MyForm.html, and browse it. It opens up in Internet Explorer. I tick the box and click SUBMIT. The PHP page opens and gives an error "Notice: Undefined variable" for the form checkbox "mychoice".
How can I fix this?
Thanks,
May