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

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 

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.