Listing 1. A Simple HTML Form
<HEAD>
<TITLE>Basic Form</TITLE>
<H1>A Basic Form</H1>
</HEAD>
<BODY>
<HR>
<FORM METHOD=POST ACTION="http://your.http.host/cgi-bin/echo.sh"http://your.http.host/cgi-bin/echo.sh">gt;
Enter Your Name <INPUT TYPE="text" NAME="yourname" SIZE=30
MAXLENGTH=80><P>
Select a Color
<SELECT NAME="color">
<OPTION SELECTED>Sky Blue
<OPTION>Ruby Red
<OPTION>Dark Brown
</SELECT><P>
Object Shape
<INPUT TYPE="radio" NAME="shape" VALUE="round" CHECKED> Round
<INPUT TYPE="radio" NAME="shape" VALUE="square"> Square
<INPUT TYPE="radio" NAME="shape" VALUE="blob"> Blob
Check if this is your first shape
<INPUT TYPE=checkbox" NAME="first">
<HR>
<INPUT TYPE="sumbit" VALUE="submit"> or <INPUT TYPE="reset"
VALUE="Start Over">
<INPUT TYPE="hidden" VALUE="echoform">
</FORM>
</BODY>
Copyright © 1994 - 2018 Linux Journal. All rights reserved.