Hi, i'm learning php and i'm beginner. now i'm going to learn form submission. so please help me to create form submission with verification.
| SitePoint Sponsor |
Hi, i'm learning php and i'm beginner. now i'm going to learn form submission. so please help me to create form submission with verification.
There are a lot of tutorials out there use your favorite search engine.
go to 9lessons.com and get your appropriate form.
Here is simple form that process your inputed name:
Code:<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Form</title> </head> <body> <?php if(isset($_POST['my_name'])) { echo 'Hello!'; } else { echo 'Please enter your name!'; } ?> <br/> <form action="#" method="post"> Type your name here: <input type="text" name="my_name" /><br/> <input type="submit" value="Send" /> </form> </body> </html>
Bookmarks