Skip to main content

Posts

Showing posts with the label PHP class in Hindi

Introduction to PHP Form Handling ( PHP class part 14 in Hindi )

PHP form handling  Introduction to PHP Form Handling HTML forms को PHP code द्वारा handle करना PHP form handling कहलाता है। चाहे कोई नयी email id create करनी हो या किसी exam का online form भरना हो आप HTML forms के द्वारा ही अपनी information पास करते है। किसी भी web page पर user से data input लेने का माध्यम forms होते है। Forms की मदद से user required information fill करता है फिर submit button पर click करता है। जब user submit button पर क्लिक करता है तो action लिया जाता है। ये action <form> tag के action attribute में define होता है। इस attribute में आप या तो किसी HTML file का address देते है या किसी scripting file का जैसे की PHP या JavaScript का address देते है। यदि आपको HTML form को PHP के द्वारा handle करना है तो आप action attribute में किसी PHP file का नाम देते है और उस PHP file में आप form को हैंडल करते है। Example.html <html> <head> <title>Forms Demo</title> </head> <body> <form action="f...