Logo  

CS479/579 - Web Programming II

Displaying exercises/e2/solution/e2.html

<!DOCTYPE html>
<html>
<head>
 <title> Email form </title>
</head>
<body>
 <h2> Exercise #2 </h2>
   
 <br>
 <form method='post' action='http://oldmanprogrammer.net/courses/cs479/code/ex/e2.php'>
 <table>
  <tr><td><td> <b> New member form </b>
  <tr>
   <td align='right'> Sender:
   <td align='left'><input size=30 name='realname' type="text" placeholder='Real Name' required>
  </tr>
  <tr>
   <td align='right'> Major:
   <td align='left'><input size=30 name='major' type="text" placeholder='Your major'></tr>
  <tr>
   <td align='right'> Year:
   <td>
     <select name="year">
       <option value="Freshman"> Freshman </option>
       <option value="Sophomore"> Sophomore </option>
       <option value="Junior"> Junior </option>
       <option value="Senior"> Senior </option>
     </select>
   </td>
  <tr>
   <td align='right'>Going on to<br> grad school?
   <td>
    <input type='radio' name='grad' value='yes'> Yes
    <input type='radio' name='grad' value='no'> No
    <input type='radio' name='grad' value='maybe'> Maybe
  </tr>
  <tr>
   <td align='right'> Above 3.5<br> GPA?
   <td> <input type='checkbox' name='gpa' value='yes'>
  </tr>
  <tr>
    <td align='right'> Telephone:
    <td align='left'>
      <input type="tel" name='tele' pattern='\([0-9]{3}\) [0-9]{3}-[0-9]{4}' placeholder='(xxx) xxx-xxxx'>
    </td>
  </tr>
  <tr>
    <td align='right'> E-Mail:
    <td align='left'> <input size=60 type="email" name='email' placeholder='someone@host' required>
  </tr>
  <tr>
   <td align='right'> Message:
   <td align='left'> <textarea cols=80 rows=10 name='message'></textarea>
  <tr>
    <td><td><input type="submit" value='Submit'> <input type='reset' value='Reset'>
  </tr>
  </table>
 </form>
</body>
</html>