Home
 
 
Search:  
C C++ Perl PHP Python HTML ShellScripts
 
 
  Coding Books
  Tutorials
  Search Code
  Browse Code
  Link to Us
  Site News
  Contact Metalshell
 
 
 
  Submit Code   Statistics
 



Web Design in a Nutshell    (ISBN: 0596001967)


 

 List Price: $29.95
 Our Price: $20.97
 Used Price: $5.95

 Release Date: 15 October, 2001
 Manufacturer: O'Reilly & Associates (Paperback)
 Sales Rank: 2,444

 Author: Jennifer Niederst









More Info

 HTML Form 2002-05-13 18:09:46
  html 
Category: source:html:forms
Description: This is an example of a basic form in HTML. Gives the idea of values that are passed to a CGI program to be broken down.
Platform: all
Author: Snap
Viewed: 3588
Rating: 2.6/5 (16 votes)
If you have any questions about this piece of code or still need help, try posting your question on the forum.

 

Printable Version
forms.html
<html>
<title>Form Example for Metalshell by Snap</title>

<!-- Form Example created by Snap (iam@someoneshouse.com) -->
<!-- Created for Metalshell http://www.metalshell.com     -->

<body bgcolor="black"><font color="white">
This is an example of a form with everything you should need to send 
to a perl program to break it down.
</font>

<!--Start of Form:  Replace submit.cgi with wherever you're sending this form-->
<form action="submit.cgi">
<font color="white">

<!-- Text Box example -->
<b>Date:</b>  <input type="text" name="date" size="10"><br><br>

<!-- Drop Down Box example  NOTE the value they select will be whats sent-->
<b>Interest:</b>
<select name="interest">
<option>Magazines
<option>Movies
<option>Mauling
<option>Manipulation
</select>
<BR><BR>

<!--Use tables to line stuff up nice-->
<!--Radio Buttons-->
<table>
  <tr>
    <td valign="top">
      <font color="white">
        <b>Gender</b>
      </font>
    </td>
    <td>
      <font color="white">
        <input type="radio" name="sex" value="Male">Male<br>
        <input type="radio" name="sex" value="Female">Female<br>
        <input type="radio" name="sex" value="NA">Perfer not to say<br>
     </font>
    </td>
  </tr>
</table>
<br><br>


<!--Check Boxes example (again tables to clean up)-->
<table>
  <tr>
    <td valign="top">
      <font color="white">
        <b>Send me information on:</b><br>
      </font>
    </td>
    <td>
      <font color="white">
        <input type="checkbox" name="perl">Perl<br>
        <input type="checkbox" name="Cplus">C++<br>
        <input type="checkbox" name="HTML">HTML<br>
        <input type="checkbox" name="script">Scripting<br><br>
      </font>
    </td>
  </tr>
</table>
<br>
<!-- The Infamous Text Box example -->
<b>Comments:</b><br>
<textarea name="question" rows="10" cols="40"></textarea>
<br><br>

<!-- Hidden field, good for passing descrete values (maintain state) -->
<input type="hidden" name="Snap" value="Admin">

<!-- Submit and Reset buttons are needed in most all forms -->
<input type="submit" value="Submit!">   
<input type="reset" value="Reset Form">

<!--Close tags including the form-->
</font>
</form>
</body>
</html>
Rate this code:
(Not Helpful)  (Very Helpful) 

 
 
   Developer.*  
   Blue Parrots  
   Technipal  
   Defy Magazine  
   Code Project  
   Prog. Heaven  


Got Money?