web pages: create & maintain week 12 creating forms

40
WEB PAGES: Create & Maintain Week 12 Creating FORMS

Upload: lexine

Post on 11-Jan-2016

28 views

Category:

Documents


0 download

DESCRIPTION

WEB PAGES: Create & Maintain Week 12 Creating FORMS. FORM. What happens when I press the. Button ?. Guestbook.txt. What happens when I press the. FName =John LName =Smith Computer=PC How=FIOS Website=No ## Fname =Mary Lname =Jones Computer=MAC How=DSL …. Button ?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: WEB PAGES: Create & Maintain Week 12 Creating FORMS

WEB PAGES: Create & MaintainWeek 12

Creating FORMS

Page 2: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 3: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 4: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 5: WEB PAGES: Create & Maintain Week 12 Creating FORMS

FORM

Page 6: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 7: WEB PAGES: Create & Maintain Week 12 Creating FORMS

What happens when I press the Button ?

Page 8: WEB PAGES: Create & Maintain Week 12 Creating FORMS

What happens when I press the Button ?

FName=JohnLName=SmithComputer=PCHow=FIOSWebsite=No##Fname=MaryLname=JonesComputer=MACHow=DSL…

Guestbook.txt

Page 9: WEB PAGES: Create & Maintain Week 12 Creating FORMS

What happens when I press the Button ?

Form is created using HTML

Processing of the Information sent by the FORM is completed

using a program on the SERVER !

Page 10: WEB PAGES: Create & Maintain Week 12 Creating FORMS

What happens when I press the Button ?

• All Servers have these programs• CGI ( Common Gateway Interface )• Guestbook Program

• Or you could create your own…

• PHP• AJAX• Java• JavaScript• Perl• C, C+, C++, C#• Ruby, Ruby on Rails• Python• VB. Net

Page 11: WEB PAGES: Create & Maintain Week 12 Creating FORMS

What happens when I press the Button ?

UDEL has a CGI-Guestbook Program !

Page 12: WEB PAGES: Create & Maintain Week 12 Creating FORMS

FORM TAGS

<FORM> </FORM>Options: Method Action

= POST= http://udel.edu/cgi-bin/guestbook/~username/filename

Program on the Udel Server

Page 13: WEB PAGES: Create & Maintain Week 12 Creating FORMS

FORM TAGS<FORM> </FORM>

FORM ELEMENTS

<INPUT>Options:

TypeNameValueSizeWidth

Text BoxesText Area Boxes

Check BoxesOption BoxesDrop Down Boxes

Hidden Controls

Radio ButtonsReset ButtonsSubmit Buttons

Page 14: WEB PAGES: Create & Maintain Week 12 Creating FORMS

TEXT BOX

Page 15: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 16: WEB PAGES: Create & Maintain Week 12 Creating FORMS

CHECKBOXES

Page 17: WEB PAGES: Create & Maintain Week 12 Creating FORMS

RADIO BUTTONS

Page 18: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 19: WEB PAGES: Create & Maintain Week 12 Creating FORMS

TEXTAREABOX

Page 20: WEB PAGES: Create & Maintain Week 12 Creating FORMS

DROP DOWN BOX

Page 21: WEB PAGES: Create & Maintain Week 12 Creating FORMS

RESET BUTTON

SUBMIT BUTTON

Page 22: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<DocType……<HTML><HEAD><TITLE> Forms</TITLE><STYLE>

</STYLE></HEAD><BODY>

</BODY></HTML>

<FORM>

</FORM>

Page 23: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<FORM Method=“post” Action=“http://udel.edu/cgi-bin/guestbook/~username/yourfilename.txt” >

First Name:

<INPUT type=“text” size=25 Maxlength=60 name =“fname”

First Name:

>

Page 24: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<FORM Method=“post” Action=“http:/udel.edu/cgi-bin/guestbook/~username/yourfilename.txt”

First Name:

<INPUT type=“text” size=25 Maxlength=60 name =“fname”

First Name:

>

Last Name:

<INPUT type=“text” size=25 maxlength=60 name =“lname”>

<p>Last Name:

Page 25: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<FORM Method=“post” Action=“http:/udel.edu/cgi-bin/guestbook/~username/yourfilename.txt” >

<INPUT type=“text” size=25 maxlength=60 name =“fname”

First Name:

>

<INPUT type=“text” size=25 maxlength=60 name =“fname” >

<p>Last Name:

Clear ! Send

<INPUT type = “reset” value = “Clear !”>

<INPUT type = “submit” value = “Send”>

</FORM>

First Name:

Last Name:

Page 26: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<FORM Method=“post” Action=“http:/udel.edu/cgi-bin/guestbook/~username/yourfilename.txt” >

Clear ! Send

<INPUT type = “reset” value = “Clear !”>

<INPUT type = “submit” value = “Send”>

</FORM>

Page 27: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<FORM Method=“post” Action=“http:/udel.edu/cgi-bin/guestbook/~username/yourfilename.txt”

<INPUT type=“checkbox” name=“computer” value=“Apple”> MAC:

Your Computer:

Clear ! Send

<INPUT type = “reset” value = “Clear !”>

<INPUT type = “submit” value = “Send”>

</FORM>

Your Computer:

MAC: PC: OTHER:

<INPUT type=“checkbox” name=“computer” value=“Windows”> PC:

<INPUT type=“checkbox” name=“computer” value=“Other”> Other:

Page 28: WEB PAGES: Create & Maintain Week 12 Creating FORMS

<INPUT type=“radio” name=“website” value=“Y”> Yes:

<p>Do you have High Speed Internet ?

<INPUT type=“radio” name=“website” value=“N”> No:

Do you have a website ?

Yes: No:

Do you have High Speed Internet ?

Yes: No:

<INPUT type=“radio” name=“highspeed” value=“Y”> Yes:

<INPUT type=“radio” name=“highspeed” value=“N”> No:

Do you have a website ?

Page 29: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Why did you choose this course ?

Choose One

Why did you choose this course?

<SELECT name=“why” size=1>

<option> Choose One

<option> Learn how to create a Personal website

<option> Replace Bill Gates

<option> Other

</SELECT>

Page 30: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Comments:

Comments:

<TEXTAREA name=“comments” cols=60 rows=2> </TEXTAREA>

Page 31: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Comments:

Comments:

<TEXTAREA name=“comments” cols=60 rows=2> </TEXTAREA>

How did you like the Course?

How did you like the course?

Page 32: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Instructors Comments:

Thank you for taking this course !

Instructors Comments:

<TEXTAREA name=“mycomments” cols=60 rows=1 READONLY >

</TEXTAREA>

Thank you for taking this course !

Page 33: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Remote File Permissions

Page 34: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Remote File Permissions

Page 35: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Select, then Right Click

Page 36: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Click

Page 37: WEB PAGES: Create & Maintain Week 12 Creating FORMS
Page 38: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Home Work

Page 39: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Next WeekLAST WEEKHome Work

Page 40: WEB PAGES: Create & Maintain Week 12 Creating FORMS

Next WeekLAST WEEKFRAMES