• Like
  • Save
HTML Forms Tutorial
Upcoming SlideShare
Loading in...5
×
 

HTML Forms Tutorial

on

  • 2,390 views

Learn how to create and submit basic html forms in ProdigyView.

Learn how to create and submit basic html forms in ProdigyView.

Statistics

Views

Total Views
2,390
Views on SlideShare
2,335
Embed Views
55

Actions

Likes
0
Downloads
21
Comments
0

1 Embed 55

http://www.prodigyview.com 55

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    HTML Forms Tutorial HTML Forms Tutorial Presentation Transcript

    • Basic HTML Forms Tutorial www.prodigyview.com
    • OverviewObjectiveLearn how to create and submit forms in ProdigyView.Requirements Understanding of HTML form element tags Understanding of PVHtmlEstimated Time11 minutes www.prodigyview.com
    • Follow Along With A Code Example1. 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 post1.2. Display Form Content and Elements Here Set the enctype to multipart for file uploads3. www.prodigyview.com
    • LabelsTag:<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 InputTag:<input type=“text” />Purpose:Display a single line of text to enter information into. The name of the input element
    • TextAreaTag:<textarea></textarea>Purpose:Defines a multiline text field that holds an unlimitedamount of characters www.prodigyview.com
    • ButtonTag:<button></button> or <input type=“button” />Purpose:Create a clickable button. A button’s content can either beset to be text or an image.1. Name of the button2. Set an inline style for the button 3. Value for the button to display
    • Options for Form ElementsReferring to our last slide, notice how we can pass valuesfor 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 thetags, as you will see throughout this tutorial. Options thatcan be added include but are not limited to: class  title  onblur id  onabort  onfocus dir  onmousedown  accesskey lang  onmouseup  xml:lang style  onclick  spellcheck
    • PasswordTag:<input type=“password” />Purpose:Displays a password field for users entering a passwordor other sensitive. Values typed are replaced with ageneric 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
    • FileTag:<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 radiosame name buttons in the options3. IMPORTANT: By default, ProdigyView wraps all form tags in a div. The optiondisable_css will remove that surrounding div.
    • CSS OptionsThe difference between HTML elements from PVHtmland the elements in PVForms is the lastoption, css_options.By default the value is an empty array and does not haveto specified.In our last slide, we disabled the css_options whichdisabled the default surrounding div. We could have alsopassed attributes such as id, style, or class which wouldhave also changed the behavior of the surrounding div.
    • CheckBoxTag:<input type=“checkbox” />Purpose:Creates a checkbox. Checkboxes are normally defined aseither on or off. www.prodigyview.com
    • HiddenTag:<input type=“hidden” />Purpose:Holds a value in an input field that is not visible to theuser. www.prodigyview.com
    • SubmitTag:<input type=“submit” />Purpose:Submit the values for the current form to be processed. www.prodigyview.com
    • API ReferenceFor a better understanding of the HTML elements, checkout the api at the two links below.PVForms More TutorialsFor more tutorials, please visit:http://www.prodigyview.com/tutorials www.prodigyview.com