Im trying out php to help me on the logic side
with my form but the php is just not working,
The folder is on the desktop, its not in the XAMPP
directory, I saved it as a php file, and still nothing
the only thing I could think of, is that the php
file needs to be in the localhost/xampp directory
heres the simple code:
<head><title>Register</title>
</head>
<body>
<form action = "regs.php" method = "get">
Name: <input type= "text" name ="name"><br />
<input type = "submit" value ="Submit">
</form >
</body>
<?php
$name = $_GET['name'];
if($name == "fernando")
echo "Aproved, please do wait";
else
echo " Neein";
?>
I have turned on or activated apache, still nothing.. So what can I do
I mean the html works just fine..., I will appreciate any help, thanks