SlideShare a Scribd company logo
PHP Form Tutorial

                                            (from php tutorial)

        PHP (Hypertext Preprocessor) is one of the most popular means of processing HTML
forms. Originally it was created by Rasmus Lerdorf in 1995 and stood for Personal Home Page.
It began in 1994 as a set of Common Gateway Interface binaries written in the C programming
language. The Danish/Greenlandic programmer Rasmus Lerdorf created these Personal Home
Page Tools to replace a small set of Perl scripts used to maintain his personal homepage. The
tools served for displaying his resume and recording how much traffic his page was receiving.
        PHP is a scripting language. It was designed for producing dynamic web pages. Now it
can include a command line interface capability and can be used in standalone graphical
applications. It is similar to other server-side scripts that provide dynamic content from a web
server to a client, such as Microsoft's Active Server Pages, Sun Microsystems' JavaServer Pages,
and mod_perl. PHP executes hundreds of base functions and thousands more via extensions.
        The PHP Group produces the main implementation of PHP which serves as the de facto
standard for PHP, because there is no formal specification now. PHP Group provides the
complete source code for users to build, customize and extend for their own use. It is considered
a free software released under the PHP License. But it is incompatible with the GNU General
Public License (GPL) as there are restrictions on the usage of the term PHP.
        PHP is a widely-used general-purpose scripting language that can be embedded into
HTML. It generally runs on a web server and creates web pages taking PHP code. It is also used
for command-line scripting and client-side GUI applications. It works on most web servers,
operating systems and platforms free of charge. PHP can be used with many relational database
management systems. Now it functions on more than 20 million websites and 1 million web
servers.
        PHP can be compared to a filter as it takes input from a file or stream containing text and/
or PHP instructions and outputs another data; HTML is the most common output. It can
automatically identify the language of the user.
        One who has ever created any HTML page or started dynamic web programming, has
already met with forms. Forms are special components which allow the site visitors to add
information on the HTML page.
        A PHP form on a web page allows a user to enter data that is sent to a server for
processing. For instance, almost each company web site contains a contact form, so that visitors
can send a message to the site owner. Such a contact form usually contains several fields - for the
visitor’s name, for the email address and one for the main message. PHP forms resemble paper
forms because internet users fill out the forms using checkboxes, radio buttons, or text fields. For
example, the forms can be used to enter shipping or credit card data to order a product or can be
used to retrieve data.
        When dealing with HTML forms and PHP it is necessary to remember that any form
element in HTML page will automatically be available to the PHP scripts.
<form>
     <table>
       <tr>
         <td>Name *</td>
         <td><input type="text"></td>
       </tr>
       <tr>
            <td>Email *</td>
            <td><input type="text"></td>
       </tr>
       <tr>
            <td>Phone</td>
            <td><input type="text"></td>
</tr>
      <tr>
           <td>Field_check</td>
           <td>
              <input type="checkbox" value="1"><label>Check_1</label><br>
              <input type="checkbox" value="2"><label>Check_2</label><br>
              <input type="checkbox" value="3"><label>Check_3</label>
           </td>
      </tr>
      <tr>
           <td>Message *</td>
           <td><textarea rows="5"></textarea></td>
      </tr>
           <tr>
           <td colspan="2"> </td>
      </tr>
           <tr>
           <td colspan="2"> </td>
      </tr>
      <tr>
           <td><input type="button" id="subbut" value="Submit"></td>
      </tr>
     </table>
</form>

More Related Content

What's hot (19)

PPTX
Php ch-1_server_side_scripting_basics
bantamlak dejene
 
PPTX
Php ch-2_html_forms_and_server_side_scripting
bantamlak dejene
 
DOCX
Practical file on web technology(html)
RAJWANT KAUR
 
PPT
Xhtml 2010
guest0f1e7f
 
PPTX
Hypertext markup language (html)
Aksa Sahi
 
PPTX
What should or not be programmed on the web
Mohammad Kamrul Hasan
 
PDF
Web engineering notes unit 4
inshu1890
 
PPT
Design Tools Html Xhtml
Ahsan Uddin Shan
 
PDF
Web technology practical list
desaipratu10
 
PDF
Iwt module 1
SANTOSH RATH
 
PPT
XML Programming WML by Dickson K.W. Chiu PhD, SMIEEE
Senthil Kanth
 
PPTX
HTML
miguelcroem
 
PPTX
Web page concept final ppt
Sukanya Sen Sharma
 
PPTX
Class2
Jiyeon Lee
 
PDF
Introduction to Javascript
Seble Nigussie
 
PPT
Web Services Part 1
patinijava
 
PDF
Html tutorial
Mukesh Tekwani
 
Php ch-1_server_side_scripting_basics
bantamlak dejene
 
Php ch-2_html_forms_and_server_side_scripting
bantamlak dejene
 
Practical file on web technology(html)
RAJWANT KAUR
 
Xhtml 2010
guest0f1e7f
 
Hypertext markup language (html)
Aksa Sahi
 
What should or not be programmed on the web
Mohammad Kamrul Hasan
 
Web engineering notes unit 4
inshu1890
 
Design Tools Html Xhtml
Ahsan Uddin Shan
 
Web technology practical list
desaipratu10
 
Iwt module 1
SANTOSH RATH
 
XML Programming WML by Dickson K.W. Chiu PhD, SMIEEE
Senthil Kanth
 
Web page concept final ppt
Sukanya Sen Sharma
 
Class2
Jiyeon Lee
 
Introduction to Javascript
Seble Nigussie
 
Web Services Part 1
patinijava
 
Html tutorial
Mukesh Tekwani
 

Similar to PHP form tutorial (20)

KEY
Introduction to php
jgarifuna
 
PDF
Sperimentazioni di Tecnologie e Comunicazioni Multimediali: Lezione 5
Salvatore Iaconesi
 
PPT
slidesharenew1
truptitasol
 
PPT
sdfsdfsdf
truptitasol
 
PPT
sdfsdfsdf
truptitasol
 
PPT
hgfgf
truptitasol
 
PPT
ssfsd fsdf ds f
truptitasol
 
PPT
ssfsd fsdf ds f
truptitasol
 
PPT
ssfsd fsdf ds f
truptitasol
 
PPT
345345
truptitasol
 
PPT
ssfsd fsdf ds f
truptitasol
 
PPT
test
truptitasol
 
PPT
IntroductiontoPHP.ppt
truptitasol
 
PPT
IntroductiontoPHP.ppt
truptitasol
 
PPT
test
truptitasol
 
PPT
sdfsdfsdf
truptitasol
 
PPT
IntroductiontoPHP.ppt
truptitasol
 
PPT
IntroductiontoPHP.ppt
truptitasol
 
PPT
IntroductiontoPHP.ppt
truptitasol
 
PPT
IntroductiontoPHP.ppt
truptitasol
 
Introduction to php
jgarifuna
 
Sperimentazioni di Tecnologie e Comunicazioni Multimediali: Lezione 5
Salvatore Iaconesi
 
slidesharenew1
truptitasol
 
sdfsdfsdf
truptitasol
 
sdfsdfsdf
truptitasol
 
ssfsd fsdf ds f
truptitasol
 
ssfsd fsdf ds f
truptitasol
 
ssfsd fsdf ds f
truptitasol
 
345345
truptitasol
 
ssfsd fsdf ds f
truptitasol
 
IntroductiontoPHP.ppt
truptitasol
 
IntroductiontoPHP.ppt
truptitasol
 
sdfsdfsdf
truptitasol
 
IntroductiontoPHP.ppt
truptitasol
 
IntroductiontoPHP.ppt
truptitasol
 
IntroductiontoPHP.ppt
truptitasol
 
IntroductiontoPHP.ppt
truptitasol
 
Ad

Recently uploaded (20)

PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
PPTX
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PPTX
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
 
PDF
UiPath Agentic AI ile Akıllı Otomasyonun Yeni Çağı
UiPathCommunity
 
PDF
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
ScyllaDB
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PDF
Open Source Milvus Vector Database v 2.6
Zilliz
 
PDF
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
Kubernetes - Architecture & Components.pdf
geethak285
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
 
UiPath Agentic AI ile Akıllı Otomasyonun Yeni Çağı
UiPathCommunity
 
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
ScyllaDB
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Open Source Milvus Vector Database v 2.6
Zilliz
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Ad

PHP form tutorial

  • 1. PHP Form Tutorial (from php tutorial) PHP (Hypertext Preprocessor) is one of the most popular means of processing HTML forms. Originally it was created by Rasmus Lerdorf in 1995 and stood for Personal Home Page. It began in 1994 as a set of Common Gateway Interface binaries written in the C programming language. The Danish/Greenlandic programmer Rasmus Lerdorf created these Personal Home Page Tools to replace a small set of Perl scripts used to maintain his personal homepage. The tools served for displaying his resume and recording how much traffic his page was receiving. PHP is a scripting language. It was designed for producing dynamic web pages. Now it can include a command line interface capability and can be used in standalone graphical applications. It is similar to other server-side scripts that provide dynamic content from a web server to a client, such as Microsoft's Active Server Pages, Sun Microsystems' JavaServer Pages, and mod_perl. PHP executes hundreds of base functions and thousands more via extensions. The PHP Group produces the main implementation of PHP which serves as the de facto standard for PHP, because there is no formal specification now. PHP Group provides the complete source code for users to build, customize and extend for their own use. It is considered a free software released under the PHP License. But it is incompatible with the GNU General Public License (GPL) as there are restrictions on the usage of the term PHP. PHP is a widely-used general-purpose scripting language that can be embedded into HTML. It generally runs on a web server and creates web pages taking PHP code. It is also used for command-line scripting and client-side GUI applications. It works on most web servers, operating systems and platforms free of charge. PHP can be used with many relational database management systems. Now it functions on more than 20 million websites and 1 million web servers. PHP can be compared to a filter as it takes input from a file or stream containing text and/ or PHP instructions and outputs another data; HTML is the most common output. It can automatically identify the language of the user. One who has ever created any HTML page or started dynamic web programming, has already met with forms. Forms are special components which allow the site visitors to add information on the HTML page. A PHP form on a web page allows a user to enter data that is sent to a server for processing. For instance, almost each company web site contains a contact form, so that visitors can send a message to the site owner. Such a contact form usually contains several fields - for the visitor’s name, for the email address and one for the main message. PHP forms resemble paper forms because internet users fill out the forms using checkboxes, radio buttons, or text fields. For example, the forms can be used to enter shipping or credit card data to order a product or can be used to retrieve data. When dealing with HTML forms and PHP it is necessary to remember that any form element in HTML page will automatically be available to the PHP scripts. <form> <table> <tr> <td>Name *</td> <td><input type="text"></td> </tr> <tr> <td>Email *</td> <td><input type="text"></td> </tr> <tr> <td>Phone</td> <td><input type="text"></td>
  • 2. </tr> <tr> <td>Field_check</td> <td> <input type="checkbox" value="1"><label>Check_1</label><br> <input type="checkbox" value="2"><label>Check_2</label><br> <input type="checkbox" value="3"><label>Check_3</label> </td> </tr> <tr> <td>Message *</td> <td><textarea rows="5"></textarea></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td><input type="button" id="subbut" value="Submit"></td> </tr> </table> </form>