Here is the code that I used to test my server, very simple, right?
But when I click on submit, nothing.. I've also tried similar things
with php and mysql and all it did was create empty fields in the table.
What am I doing wrong? Please help, Ultimatly I want to parse a form
into a mysql database, but if I can't get the php engine to pass data
from the forms correctly then it's no use to go any further.
<?php
if ($submit == "click"){
echo "Hello, $UserName";
}
else{
echo '
<html><body>
<form method="post" action="form.ph p">
Enter Your Name
<input type="text" name="UserName" ></input><br>
<input type="submit" name="submit" value="click"></input>
</form>
</body></html>
';
}
?>
But when I click on submit, nothing.. I've also tried similar things
with php and mysql and all it did was create empty fields in the table.
What am I doing wrong? Please help, Ultimatly I want to parse a form
into a mysql database, but if I can't get the php engine to pass data
from the forms correctly then it's no use to go any further.
<?php
if ($submit == "click"){
echo "Hello, $UserName";
}
else{
echo '
<html><body>
<form method="post" action="form.ph p">
Enter Your Name
<input type="text" name="UserName" ></input><br>
<input type="submit" name="submit" value="click"></input>
</form>
</body></html>
';
}
?>
Comment