i just made a simple form that let user fill in a name and then just print that name. but everytime if i hit sumbit, it will reset the form but nothing get printed. i checked apache log here is what error i got:
[Tue May 14 12:10:06 2002] [error] [client 127.0.0.1] PHP Warning: Undefined variable: PHP_SELF in d:\MyWeb\local\send-file.php on line 3
[Tue May 14 12:10:06 2002] [error] [client 127.0.0.1] PHP Warning: Undefined variable: submit in d:\MyWeb\local\send-file.php on line 10
is there a apachine or php config that i didn't set it right? or the coding problem?
i installed PHPBB and it runs fine on my server. i have apache+php with winXP. please help.
i have the simple code below.
<?
if ($submit){
echo $radio;
}
?>
<form action="<? echo basename($PHP_SELF) ?>" method=POST>
<input type="text" name="foo" size=10>
<select name="checks[]" size=5 multiple>
<option value="cats">Cats
<option value="dogs">Dogs
</select>
<input type="radio" name="radio" value="male"> Male
<input type="radio" name="radio" value="Female"> FeMale
<input type="submit" name="submit" value="Let's do this!">
</form>