-
Posts
2 -
Joined
-
Last visited
Posts posted by Munali
-
-
Kindly help. Am a new php programmer and am learning how to HTML form data to a php script.
Have tried several times but information on html form never get submitted. For some unknown reasons, the codes are failing . Here are my codes:
<html>
<head>
<title>Form Destination</title>
</head>
<body>
<?php
if(isset($_POST['submit']))
{
echo "Name: {$_POST['name']} <br/>";
echo "Age : {$_POST['age']} <br/>";
echo "Gender:{$_POST['gender']} <br/>";
echo "Email:{$_POST['email']} <br/>";
}
else
{
echo "Form was not submitted";
}
?>
</body>
</html>and
<html>
<head>
<title>Form Source</title>
</head><body>
<form action="form_destination.php" method="post">
<br/><br/>
Name: <input type="text" name="name"/>
<br/><br/>
Age: <input type="text" name="age"/>
<br/><br/>
Gender: Male<input type="radio" name="gender" value="male"/>
Female<input type="radio" name="gender" value="female"/>
<br/><br/>
Email: <input type="text" name="email"/>
<br/><br/>
<input type="submit" value="submit"/>
</form>
</body>
</html>
submitting form data to a PHP script
in PHP Coding Help
Posted
Thanks for your reply though even this one has failed to work. I need to do more research on this topic. It has given me hell as i can not do my project of submitting form data to mysql database.