PHP Form Handling – Form Handling In Hindi:- HTML Programming Ki Help Se Ham Form Create Karte Hain And Uske Bad Ham Form Ke Data Ko Handel Karke PHP ki Help Se Show Ya Data Store Karate Hain |
Yadi Aapne HTML Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai | Kyoki Usme Milenge Aapko HTML Full Course A to Z |
PHP Form Handling In Hindi
Form Handling Kisi Bhi PHP Developer Duvara Kiye Gaye Sabse Easy Task Mai Se Ek Hain. Kyoki Simple Rup Se Ham Form Ke Duvara Hamre Web Application Ke Sath User Interaction Ko Banate Hain |
PHP Mai Form Data Ko Collect Karne Ke Liye Ham Superglobls $_GET OR $_POST Ka Istemal Karte Hain |
Example:
<!DOCTYPE html> <html> <head> <title>PHP Tutorial</title> </head> <body> <form method="post"> <h1>PHP Form Handling </h1> <label for="name">Name <sub>*</sub></label> <input type="text" name="fname" id="name"> <br> <label for="mobile">Mobile No <sub>*</sub></label> <input type="number" name="mobile" id="mobile"> <br> <label for="email">Email Id <sub>*</sub></label> <input type="email" name="email" id="email"> <br> <input type="submit"> <br> </form> <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $name = $_REQUEST['fname']; $mob = $_REQUEST['mobile']; $email = $_REQUEST['email']; echo "Your Name Is : $name <br>"; echo "Your Mobile Number is : $mob <br>"; echo "Your Email Id Is : $email <br>"; } ?> </body> </html>
Output:

Aap Dekh Sakte Hain Ki Hamne Form Ko Handling Karne Ka Tarika Aapko Bata Diya Hain Or Form Ke Data Ko Echo Ke Help Se Print Bhi Kara Diya Hain |