SlideShare a Scribd company logo
Basic HTML Forms Tutorial




        www.prodigyview.com
Overview
Objective

Learn how to create and submit forms in ProdigyView.

Requirements

 Understanding of HTML form element tags
 Understanding of PVHtml
Estimated Time

11 minutes


                    www.prodigyview.com
Follow Along With A Code
               Example
1. Download a copy of the example code at
  www.prodigyview.com/source.
2. Install the system in an environment you feel comfortable testing in.
3. Proceed to examples/template/Forms.php




                           www.prodigyview.com
Starting and Ending The Form
     To begin this tutorial, we need to outline the area of the
     form. Start with a PVForms:formBegin() and
     PVForms::formEnd() methods.

                          Set the submission method as a post


1.



2.   Display Form Content and Elements Here

                                                   Set the enctype to multipart for
                                                   file uploads
3.
                             www.prodigyview.com
Labels
Tag:

<label></label>

Purpose:

Defines the header that describes an input field in a form.



The text to go in the form tags




                                  Set the for attribute, that corresponds with the
                                  input element id
Text Input
Tag:

<input type=“text” />

Purpose:

Display a single line of text to enter information into.




                        The name of the input element
TextArea
Tag:

<textarea></textarea>

Purpose:

Defines a multiline text field that holds an unlimited
amount of characters




                      www.prodigyview.com
Button

Tag:
<button></button> or <input type=“button” />
Purpose:
Create a clickable button. A button’s content can either be
set to be text or an image.

1. Name of the button




2. Set an inline style for the button   3. Value for the button to display
Options for Form Elements
Referring to our last slide, notice how we can pass values
for defining the style or value of an element in an array.
Every form html element in ProdigyView takes in options.

These options can be used to define elements in the
tags, as you will see throughout this tutorial. Options that
can be added include but are not limited to:


 class             title               onblur
 id                onabort             onfocus
 dir               onmousedown  accesskey
 lang              onmouseup           xml:lang
 style             onclick             spellcheck
Password
Tag:

<input type=“password” />

Purpose:

Displays a password field for users entering a password
or other sensitive. Values typed are replaced with a
generic character such as ‘*’.




                     www.prodigyview.com
Select
    Tag:

    <select>

                <option></option>

    </select>

    Purpose:

    Display a list or a combo box of options for a user to pick one or multiple options.


1. Create the options as an array




 2. Set the options in a select                 3. Set the id of the select element
File
Tag:
<input type=“file” />
Purpose:
A field in which a file to be uploaded can be placed into.
Remember the form enctype should be set to mutlipart/form-
data and the file information will be in the $_FILE array.
Radio Buttons
   Tag:
   <input type=“radio” />
   Purpose:
   Create a radio button. Radio buttons will be considered
   separate elements unless they have the same name.

1. Assign the radio buttons with the           2. Set the value of the radio
same name                                      buttons in the options




3. IMPORTANT: By default, ProdigyView wraps all form tags in a div. The option
disable_css will remove that surrounding div.
CSS Options
The difference between HTML elements from PVHtml
and the elements in PVForms is the last
option, css_options.

By default the value is an empty array and does not have
to specified.

In our last slide, we disabled the css_options which
disabled the default surrounding div. We could have also
passed attributes such as id, style, or class which would
have also changed the behavior of the surrounding div.
CheckBox
Tag:
<input type=“checkbox” />
Purpose:
Creates a checkbox. Checkboxes are normally defined as
either on or off.




                    www.prodigyview.com
Hidden
Tag:

<input type=“hidden” />

Purpose:

Holds a value in an input field that is not visible to the
user.




                       www.prodigyview.com
Submit
Tag:

<input type=“submit” />

Purpose:

Submit the values for the current form to be processed.




                     www.prodigyview.com
API Reference
For a better understanding of the HTML elements, check
out the api at the two links below.

PVForms




                 More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials


                       www.prodigyview.com

More Related Content

PPTX
html forms
PPTX
Forms with html5 (1)
PDF
2. HTML forms
PPTX
PPTX
HTML Forms
PPTX
New Form Element in HTML5
PPTX
html 5 new form attribute
PPTX
HTML Forms
html forms
Forms with html5 (1)
2. HTML forms
HTML Forms
New Form Element in HTML5
html 5 new form attribute
HTML Forms

What's hot (20)

PPSX
HTML5 - Forms
PPTX
Html form tag
PPTX
Forms in html5
PPTX
Web engineering - HTML Form
PDF
Html forms
PPT
Web forms and html lecture Number 4
PPTX
Html forms
PPTX
Html forms
PPT
20 html-forms
PDF
[Basic HTML/CSS] 4. html - form tags
DOCX
PPTX
Web design - Working with forms in HTML
PPTX
Form using html and java script validation
PPTX
Html tables, forms and audio video
PPTX
Building html forms
PPTX
Entering User Data from a Web Page HTML Forms
PPTX
Html form
PPTX
Designing web pages html forms and input
PPT
05 html-forms
HTML5 - Forms
Html form tag
Forms in html5
Web engineering - HTML Form
Html forms
Web forms and html lecture Number 4
Html forms
Html forms
20 html-forms
[Basic HTML/CSS] 4. html - form tags
Web design - Working with forms in HTML
Form using html and java script validation
Html tables, forms and audio video
Building html forms
Entering User Data from a Web Page HTML Forms
Html form
Designing web pages html forms and input
05 html-forms
Ad

Similar to HTML Forms Tutorial (20)

PPTX
Html Tags Tutorial
PPTX
HTML (part ii).pptx
PDF
PDF
Aspnet mvc tutorial_9_cs
PPT
Chapter09
PPTX
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
PDF
Html5 tutorial
PDF
Html5 - Tutorial
PPTX
HTML5 Tags and Elements Tutorial
PPTX
E-Bazaar
PDF
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
PPT
M02 un11 p01
PDF
HTML-Forms
PDF
1. Advanced Web Designing (12th IT) (1).pdf
DOCX
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
PDF
Accessible names & descriptions
PPTX
Building Potent WordPress Websites
PPT
331592291-HTML-and-Cascading style sheet
PDF
Html5 tutorial
Html Tags Tutorial
HTML (part ii).pptx
Aspnet mvc tutorial_9_cs
Chapter09
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Html5 tutorial
Html5 - Tutorial
HTML5 Tags and Elements Tutorial
E-Bazaar
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
M02 un11 p01
HTML-Forms
1. Advanced Web Designing (12th IT) (1).pdf
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
Accessible names & descriptions
Building Potent WordPress Websites
331592291-HTML-and-Cascading style sheet
Html5 tutorial
Ad

More from ProdigyView (20)

PPTX
Installing Plug-ins
PPTX
Building An Application
PPTX
Installing Applications
PPTX
Video Content Management
PPTX
Audio Content Management
PPTX
File Content Management
PPTX
Email Configuration
PPTX
Video Conversion PHP
PPTX
Sending Email Basics PHP
PPTX
Tools ProdigyView
PPTX
Custom Validation PHP
PPTX
Basic File Cache Tutorial - PHP
PPTX
Understanding Web Cache
PPTX
Javascript And CSS Libraries
PPTX
PHP Libraries
PPTX
SQL Prepared Statements Tutorial
PPTX
Database Basics
PPTX
Implementing the Adapter Design Pattern
PPTX
Intercepting Filters Design Pattern
PPTX
Creating Dynamic Objects PHP
Installing Plug-ins
Building An Application
Installing Applications
Video Content Management
Audio Content Management
File Content Management
Email Configuration
Video Conversion PHP
Sending Email Basics PHP
Tools ProdigyView
Custom Validation PHP
Basic File Cache Tutorial - PHP
Understanding Web Cache
Javascript And CSS Libraries
PHP Libraries
SQL Prepared Statements Tutorial
Database Basics
Implementing the Adapter Design Pattern
Intercepting Filters Design Pattern
Creating Dynamic Objects PHP

Recently uploaded (20)

PDF
Transforming Manufacturing operations through Intelligent Integrations
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Electronic commerce courselecture one. Pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
Modernizing your data center with Dell and AMD
PDF
Spectral efficient network and resource selection model in 5G networks
Transforming Manufacturing operations through Intelligent Integrations
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Sensors and Actuators in IoT Systems using pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Electronic commerce courselecture one. Pdf
GamePlan Trading System Review: Professional Trader's Honest Take
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
madgavkar20181017ppt McKinsey Presentation.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Modernizing your data center with Dell and AMD
Spectral efficient network and resource selection model in 5G networks

HTML Forms Tutorial

  • 1. Basic HTML Forms Tutorial www.prodigyview.com
  • 2. Overview Objective Learn how to create and submit forms in ProdigyView. Requirements  Understanding of HTML form element tags  Understanding of PVHtml Estimated Time 11 minutes www.prodigyview.com
  • 3. Follow Along With A Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to examples/template/Forms.php www.prodigyview.com
  • 4. Starting and Ending The Form To begin this tutorial, we need to outline the area of the form. Start with a PVForms:formBegin() and PVForms::formEnd() methods. Set the submission method as a post 1. 2. Display Form Content and Elements Here Set the enctype to multipart for file uploads 3. www.prodigyview.com
  • 5. Labels Tag: <label></label> Purpose: Defines the header that describes an input field in a form. The text to go in the form tags Set the for attribute, that corresponds with the input element id
  • 6. Text Input Tag: <input type=“text” /> Purpose: Display a single line of text to enter information into. The name of the input element
  • 7. TextArea Tag: <textarea></textarea> Purpose: Defines a multiline text field that holds an unlimited amount of characters www.prodigyview.com
  • 8. Button Tag: <button></button> or <input type=“button” /> Purpose: Create a clickable button. A button’s content can either be set to be text or an image. 1. Name of the button 2. Set an inline style for the button 3. Value for the button to display
  • 9. Options for Form Elements Referring to our last slide, notice how we can pass values for defining the style or value of an element in an array. Every form html element in ProdigyView takes in options. These options can be used to define elements in the tags, as you will see throughout this tutorial. Options that can be added include but are not limited to:  class  title  onblur  id  onabort  onfocus  dir  onmousedown  accesskey  lang  onmouseup  xml:lang  style  onclick  spellcheck
  • 10. Password Tag: <input type=“password” /> Purpose: Displays a password field for users entering a password or other sensitive. Values typed are replaced with a generic character such as ‘*’. www.prodigyview.com
  • 11. Select Tag: <select> <option></option> </select> Purpose: Display a list or a combo box of options for a user to pick one or multiple options. 1. Create the options as an array 2. Set the options in a select 3. Set the id of the select element
  • 12. File Tag: <input type=“file” /> Purpose: A field in which a file to be uploaded can be placed into. Remember the form enctype should be set to mutlipart/form- data and the file information will be in the $_FILE array.
  • 13. Radio Buttons Tag: <input type=“radio” /> Purpose: Create a radio button. Radio buttons will be considered separate elements unless they have the same name. 1. Assign the radio buttons with the 2. Set the value of the radio same name buttons in the options 3. IMPORTANT: By default, ProdigyView wraps all form tags in a div. The option disable_css will remove that surrounding div.
  • 14. CSS Options The difference between HTML elements from PVHtml and the elements in PVForms is the last option, css_options. By default the value is an empty array and does not have to specified. In our last slide, we disabled the css_options which disabled the default surrounding div. We could have also passed attributes such as id, style, or class which would have also changed the behavior of the surrounding div.
  • 15. CheckBox Tag: <input type=“checkbox” /> Purpose: Creates a checkbox. Checkboxes are normally defined as either on or off. www.prodigyview.com
  • 16. Hidden Tag: <input type=“hidden” /> Purpose: Holds a value in an input field that is not visible to the user. www.prodigyview.com
  • 17. Submit Tag: <input type=“submit” /> Purpose: Submit the values for the current form to be processed. www.prodigyview.com
  • 18. API Reference For a better understanding of the HTML elements, check out the api at the two links below. PVForms More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com