0% found this document useful (0 votes)
7 views12 pages

Lesson+Day+5+ +forms

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views12 pages

Lesson+Day+5+ +forms

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Forms in PHP

Technology and Livelihood Education – Computer 10


Warm-up Questions:
• Have you seen a Registration Form online?
• Have you tried to fill up one?
• What happened after submitting?
Forms
• The HTML Form element defines a form
that is used to collect user input.
• An HTML Form contains Form elements
• Form elements are different types of input
elements, like text fields, checkboxes, radio
buttons, submit buttons, and more.
Example of an HTML
Form
The Action Attribute
• The ’action’ attribute
defines the action to be
performed when the
form is submitted.
• Normally, the form data
is sent to a web page
on the server when the HTML Form embedded to a PHP file

user clicks on the


submit button.
Welcome.php file
The Action Attribute (cont…)
• Using the HTML Form, user
inputs his name and Emai
address while there is a
PHP code embedded and
the data will be transmitted
through the PHP File.
• As the user clicks enter, the
PHP file will run and will
display the value collected
from the Form file.
GET VS. POST
• Information sent from a form with the GET method
is visible to everyone (all variable names and values
are displayed in the URL).
• GET may be used for sending non-sensitive data.
• GET should NEVER be used for sending passwords or
other sensitive information
• Information sent from a form with the POST method
is invisible to others
• POST supports advanced functionality such as support
for multi-part binary input while uploading files to server.
• However, because the variables are not displayed in the
URL, it is not possible to bookmark the page.
Example of GET VS. POST, see the
difference
Machine Problem 2 – HTML Forms
• Create a Registration Form using PHP HTML Form Elements.
• Imitate the contents of the form which can be found on the
attached image in this assignment. Use only the sign up
section. You are encouraged to put CSS but you don’t have to
do the exact design in the example.
• Generate the data from the textfields and make them appear
beside the corresponding textfield.
Group Activity – Powerpoint/Slides
• Look for 10 possible violations of the Online
Ethics and Etiquette. Include pictures. Explain
why it violates the ethical standards in the
cyberspace. It may be a bashing, negative
criticism and plagiarism.
• Alongside, include a solution or on how you will
make such action to abide the standards in
terms of ethics in the cyberspace.
Groupings
• 1 – CN 1-3
• 2 – CN 4-6
• 3 – CN 7-9
• 4 – CN 10-12
• Submit the powerpoint/slides via Schoology on
Wednesday, August 24, 2022
• Only one (1) group member will submit

You might also like