SlideShare a Scribd company logo
1 of 9
Presented By: Lakshita Chawla
Enrollment Number: 03320602023
HTML forms are an essential component of web
development, enabling interaction between users
and websites. A form consists of various input
fields, such as text fields, checkboxes, radio
buttons, dropdown menus, and buttons, which
allow users to input data and submit it to a server
for processing.
Form handling in PHP involves capturing user
input from HTML forms and processing it on the
server side. Form handling typically involves
retrieving the submitted data, performing any
necessary validation or sanitization, and then
processing it further (e.g., saving to a database,
sending emails, etc.).
FEATURE GET POST
Data Transmission Data is sent via URL parameters
Data is sent in the body of the
request
Visibility Data is visible in the URL Data is not visible in the URL
Data Length Limit
Limited by URL length (typically
2048 characters)
Limited by server configuration or
PHP settings (typically larger than
GET)
Security
Less secure for sensitive
information, as data is visible in
URL and can be bookmarked or
cached
More secure for sensitive
information, as data is not visible
in URL and is not cached or
bookmarked
Idempotent
Should be idempotent (i.e.,
multiple identical requests should
have the same effect as a single
request)
May or may not be idempotent,
typically used for operations that
change state (e.g., submitting a
form)
Form processing refers to the actions taken with the
data submitted through a form. This includes tasks
such as validating the input, storing it in a database,
sending it via email, or performing any other
necessary operations based on the form's purpose.
In PHP, form processing is typically done in the same
PHP script that handles form submission.
Form validation is the process of ensuring that
the data submitted through a form meets certain
requirements or constraints. This can include
checking for required fields, validating email
addresses, verifying the format of dates etc.
TEXT
This creates a single-line text
input field where users can
type alphanumeric
characters.
SYNTAX:- <input type =
“text” name=“Name”>
This creates a password input
field where the entered
characters are masked (usually
as asterisks or dots).
SYNTAX:- <input type
=“password” name=“password”>
This creates a set of radio buttons where
users can select one option from multiple
choices.
SYNTAX:- <input type="radio"
name="gender" value="male"> Male
<input type="radio" name="gender"
value="female"> Female
This creates checkboxes where
users can select multiple options.
SYNTAX:- <input
type="checkbox"
name="hobbies[]"
value="reading"> Reading
<input type="checkbox"
name="hobbies[]"
value="cooking"> Cooking
PASSWORD RADIO CHECKBOX
TEXTAREA
This creates a multi-line text input
field where users can enter longer
text entries, such as comments or
messages.
SYNTAX:- <input type = “TextArea”
name=“Message”>
DROPDOWN
This creates a dropdown menu where users can
select one option from a list.
SYNTAX:- <select name="country">
<option value="usa">United States</option>
<option value="uk">United Kingdom</option>
<option value="canada">Canada</option>
</select>
HIDDEN
This creates an invisible input field
that's not displayed to the user but
can be submitted with the form data.
SYNTAX:- <input type="hidden"
name="user_id" value="123">
Thank you!

More Related Content

Similar to FORMS IN PHP contains various tags and code (20)

Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
Forms with html5
Forms with html5Forms with html5
Forms with html5
 
Forms with html5 (1)
Forms with html5 (1)Forms with html5 (1)
Forms with html5 (1)
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Html forms
Html formsHtml forms
Html forms
 
Html forms
Html formsHtml forms
Html forms
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attribute
 
JavaScript - Chapter 14 - Form Handling
 JavaScript - Chapter 14 - Form Handling   JavaScript - Chapter 14 - Form Handling
JavaScript - Chapter 14 - Form Handling
 
ASSIGNMENT3 ew.docx
ASSIGNMENT3 ew.docxASSIGNMENT3 ew.docx
ASSIGNMENT3 ew.docx
 
Php forms and validations by naveen kumar veligeti
Php forms and validations by naveen kumar veligetiPhp forms and validations by naveen kumar veligeti
Php forms and validations by naveen kumar veligeti
 
Spsl v unit - final
Spsl v unit - finalSpsl v unit - final
Spsl v unit - final
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
WIT UNIT-4.pdf
WIT UNIT-4.pdfWIT UNIT-4.pdf
WIT UNIT-4.pdf
 
Html forms
Html formsHtml forms
Html forms
 
forms.pptx
forms.pptxforms.pptx
forms.pptx
 
Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environment
 
Session and cookies ,get and post methods
Session and cookies ,get and post methodsSession and cookies ,get and post methods
Session and cookies ,get and post methods
 
Fm 2
Fm 2Fm 2
Fm 2
 
Designing web pages html forms and input
Designing web pages html  forms and inputDesigning web pages html  forms and input
Designing web pages html forms and input
 

Recently uploaded

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 

Recently uploaded (20)

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 

FORMS IN PHP contains various tags and code

  • 1. Presented By: Lakshita Chawla Enrollment Number: 03320602023
  • 2. HTML forms are an essential component of web development, enabling interaction between users and websites. A form consists of various input fields, such as text fields, checkboxes, radio buttons, dropdown menus, and buttons, which allow users to input data and submit it to a server for processing.
  • 3. Form handling in PHP involves capturing user input from HTML forms and processing it on the server side. Form handling typically involves retrieving the submitted data, performing any necessary validation or sanitization, and then processing it further (e.g., saving to a database, sending emails, etc.).
  • 4. FEATURE GET POST Data Transmission Data is sent via URL parameters Data is sent in the body of the request Visibility Data is visible in the URL Data is not visible in the URL Data Length Limit Limited by URL length (typically 2048 characters) Limited by server configuration or PHP settings (typically larger than GET) Security Less secure for sensitive information, as data is visible in URL and can be bookmarked or cached More secure for sensitive information, as data is not visible in URL and is not cached or bookmarked Idempotent Should be idempotent (i.e., multiple identical requests should have the same effect as a single request) May or may not be idempotent, typically used for operations that change state (e.g., submitting a form)
  • 5. Form processing refers to the actions taken with the data submitted through a form. This includes tasks such as validating the input, storing it in a database, sending it via email, or performing any other necessary operations based on the form's purpose. In PHP, form processing is typically done in the same PHP script that handles form submission.
  • 6. Form validation is the process of ensuring that the data submitted through a form meets certain requirements or constraints. This can include checking for required fields, validating email addresses, verifying the format of dates etc.
  • 7. TEXT This creates a single-line text input field where users can type alphanumeric characters. SYNTAX:- <input type = “text” name=“Name”> This creates a password input field where the entered characters are masked (usually as asterisks or dots). SYNTAX:- <input type =“password” name=“password”> This creates a set of radio buttons where users can select one option from multiple choices. SYNTAX:- <input type="radio" name="gender" value="male"> Male <input type="radio" name="gender" value="female"> Female This creates checkboxes where users can select multiple options. SYNTAX:- <input type="checkbox" name="hobbies[]" value="reading"> Reading <input type="checkbox" name="hobbies[]" value="cooking"> Cooking PASSWORD RADIO CHECKBOX TEXTAREA This creates a multi-line text input field where users can enter longer text entries, such as comments or messages. SYNTAX:- <input type = “TextArea” name=“Message”> DROPDOWN This creates a dropdown menu where users can select one option from a list. SYNTAX:- <select name="country"> <option value="usa">United States</option> <option value="uk">United Kingdom</option> <option value="canada">Canada</option> </select> HIDDEN This creates an invisible input field that's not displayed to the user but can be submitted with the form data. SYNTAX:- <input type="hidden" name="user_id" value="123">
  • 8.