Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to CGI .. Help me by looking over this?

Status
Not open for further replies.

flick829

Technical User
Apr 9, 2002
1
US
I am a new user to CGI scripting and i recently wrote a form mailer to work with a cgi script and just wanted to know if it looked right.. thanks :)

Here it is..

<form action=&quot;../cgi-bin/ezformml.cgi&quot; method=&quot;POST&quot;
name=&quot;EZFormMailer&quot;>

<p align=&quot;center&quot;><font face=&quot;Copperplate Gothic Light&quot; size=&quot;2&quot;>Name:</font> 

<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;Name:&quot; SIZE=&quot;20&quot;> <br>
<br>
<font face=&quot;Copperplate Gothic Light&quot; size=&quot;2&quot;>         E-mail:  </font>

<input type=&quot;text&quot; size=&quot;25&quot; name=&quot;Email:&quot;><br>
<br>
<font face=&quot;Copperplate Gothic Light&quot; size=&quot;2&quot;>    Quote For:  </font>

<SELECT NAME=&quot;quoteform&quot;>
<option selected>- Select One -</option>
<OPTION VALUE=&quot;Option One&quot;>Signs</OPTION>
<OPTION VALUE=&quot;Option Two&quot;>- Backlit</OPTION>
<option value=&quot;Option Three&quot;>- Retail</option>
<option value=&quot;Option Four&quot;>- Other</option>
<option value=&quot;Option Five&quot;>Vinly Lettering</option>
<option value=&quot;Option Six&quot;>Banners</option>
<option value=&quot;Option Seven&quot;>Other</option>
</SELECT><font face=&quot;Copperplate Gothic Light&quot; size=&quot;2&quot;>                           </font> <br>
<br>
<font face=&quot;Copperplate Gothic Light&quot; size=&quot;2&quot;>Please give us some details on the quote
<br>
that you are requesting by filling in the box we <br>
offer below with more information:</font><br>

<TEXTAREA NAME=&quot;Quote Comments&quot; ROWS=&quot;8&quot; COLS=&quot;30&quot;></TEXTAREA>

<input type=&quot;hidden&quot; name=&quot;to_email&quot; value=&quot;quotes@grace-signs.com&quot;>

<input type=&quot;hidden&quot; name=&quot;subject&quot; value=&quot;Quote - Form Data&quot;>

<br>
<br>

<input type=&quot;SUBMIT&quot; value=&quot;Submit Quote&quot;>
 
The only line that really has to do with CGI is <form action=&quot;../cgi-bin/ezformml.cgi&quot; method=&quot;POST&quot;
name=&quot;EZFormMailer&quot;>
The rest of the form is strictly HTML. The formail program you are using should tell you how to configure the hidden fields. In general, it looks fine to me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top