Firstly, welcome to WebmasterWorld. Be sure to read Marcia's welcome and giude to the basics [webmasterworld.com].
If you want just a simple form-to-email processing script, then you can use NMS formmail, which is probably the most-widely used cgi form processor. All you do is upload it to your cgi-bin and configure a set of variables.
Available from: [nms-cgi.sourceforge.net...]
If you want this membership form to write the data into a MySQL database as well, then imho your easiest way would be to use a php script. Have a look around www.hotscripts.com and in particular the php/tips_and_tutorials section, and look for inserting data into a MySQL database.
If you have any problems, just come back and ask!
Regards,
William.
Remember: Make sure you set the referrers array up properly!
Let us know how you get on.
Regards,
wruk999
[edited by: wruk999 at 4:44 pm (utc) on April 13, 2003]
<HTML>
<HEAD>
<STYLE TYPE="text/css">
BODY
{scrollbar-arrow-color: #0000FF;scrollbar-base-color: #000000;scrollbar-DarkShadow-color: #0000FF}</STYLE>
<TITLE>your domain RECRUITMENT FORM</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>
<BODY BGCOLOR="#000000" text="#FFFFFF">
<FORM action=" [yourdomain.com...] method="POST">
<H1><CENTER> </CENTER></H1>
<H1><CENTER><FONT COLOR="#ffffff" size="5">Welcome to the xxxxxxxxx Recruitment page.
Please fill in all the info that is asked of you and hit submit key at the
bottom. You have to be above the age of 18 to qualify for our squad. You should
be contacted within a couple of days by our recruiter. Thx for applying. COL.
KNIGHT </FONT>
</CENTER></H1>
<H3><CENTER>
<INPUT TYPE="hidden" NAME="your_email_address" VALUE="command@yourdomain.com">
<INPUT TYPE="hidden" NAME="your_name" VALUE="COL. KNIGHT">
<INPUT TYPE="hidden" NAME="email_subject_line" VALUE="This is from the recruitment form">
<INPUT TYPE="hidden" NAME="required_fields" VALUE="recrutiment@yourdomain.com">
<INPUT TYPE="hidden" NAME="thank_you_title" VALUE="Thank for applying at xxxxxxxxxxxx">
<INPUT TYPE="hidden" NAME="return_link_url" VALUE="http://www.yourdomain.com/body.htm">
<INPUT TYPE="hidden" NAME="return_link_name" VALUE="Back">
<INPUT TYPE="hidden" NAME="background_color" VALUE="#000000">
<INPUT TYPE="hidden" NAME="text_color" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="link_color" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="visited_link_color" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="active_link_color" VALUE="#FFFFFF">
</CENTER></H3>
<H3><CENTER>
<table width="859" height="351" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="286" height="26"><font size="4">Enter Real Name:</font></td>
<td width="260" height="26"> <input type="text" name="Your Real Name:">
</td>
</tr>
<tr>
<td width="286" height="26"><font size="4">Enter your ICQ #:</font></td>
<td width="260" height="26"> <input type="text" name="Enter your icq #:">
</td>
</tr>
<tr>
<td width="286"><font size="4">Game call sign:</font></td>
<td width="260"> <input type="text" name="game call sign:"> </td>
</tr>
<tr>
<td width="286"><font size="4">State You Live In:</font></td>
<td width="260"> <input type="text" name="State You live in:"> </td>
</tr>
<tr>
<td width="286"><font size="4">Your Age:</font></td>
<td width="260"> <input type="text" name="Your age:"> </td>
</tr>
<tr>
<td width="286"><font size="4">How Long have you been playing:</font></td>
<td width="260"> <input type="text" name="How long have you been playing:"size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">How often do you get to play:</font></td>
<td width="260"> <input type="text" name="How often do you play:" size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">How did you hear of the xxxxxxxx:</font></td>
<td width="260"> <input type="text" name="How did you hear of the xxxxxxxxxx:" size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">When Is a good time for a tryout:</font></td>
<td width="260"> <input type="text" name="When is a good time for a tryout:" size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">Your Email address:</font></td>
<td width="260"> <input type="text" name="Email address:" size="25">
</td>
</tr>
<tr>
<td width="286" height="26"><font size="4">What type of connection do
you have</font></td>
<td width="260" height="26"> <input type="text" name="What type of connection do you have:">
</td>
</tr>
<tr>
<td width="286"><font size="4">Do you agree to ICE bylaws:</font></td>
<td width="260"> <p> <font size="4">
<input type="checkbox" name="Do you agree to bylaws" value="yes">
Yes</font></p>
<p> <font size="4">
<input type="checkbox" name="Do you agree to bylaws" value="no">
No </font></p></td>
</tr>
</table>
</CENTER></H3>
<P> </P>
<BLOCKQUOTE>
<P align="center">
<INPUT TYPE="submit" NAME="Submit"
VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</P>
</BLOCKQUOTE>
<P> </P>
</FORM>
</BODY>
</HTML>
[edited by: Knight_903 at 5:09 pm (utc) on April 13, 2003]
<FORM action=" [yourdomain.com...] method="POST">
you have called a directory, instead of the .pl script itself
<added>
is that not what I just posted?
<HEAD>
<STYLE TYPE="text/css">
BODY
{scrollbar-arrow-color: #0000FF;scrollbar-base-color: #000000;scrollbar-DarkShadow-color: #0000FF}</STYLE>
<TITLE>your domain RECRUITMENT FORM</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>
<BODY BGCOLOR="#000000" text="#FFFFFF">
ect>>>
<HEAD>
<STYLE TYPE="text/css">
BODY
{scrollbar-arrow-color: #0000FF;scrollbar-base-color: #000000;scrollbar-DarkShadow-color: #0000FF}</STYLE>
<TITLE> RECRUITMENT FORM</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>
<BODY BGCOLOR="#000000" text="#FFFFFF">
<H1><CENTER> </CENTER></H1>
<H1><CENTER><FONT COLOR="#ffffff" size="5">Welcome to the Recruitment page.
Please fill in all the info that is asked of you and hit submit key at the
bottom. You have to be above the age of 18 to qualify for our squad. You should
be contacted within a couple of days by our recruiter. Thx for applying. COL.
KNIGHT </FONT>
</CENTER></H1>
<H3><CENTER>
<form
<form name= "form 1" method="post" action="/cgi-bin/FormMail.pl">
<INPUT TYPE="hidden" NAME="your_email_address" VALUE="command@yourdomain.com">
<INPUT TYPE="hidden" NAME="your_name" VALUE="COL. KNIGHT">
<INPUT TYPE="hidden" NAME="email_subject_line" VALUE="This is from the recruitment form">
<INPUT TYPE="hidden" NAME="required_fields" VALUE="recrutiment@yourdomain.com">
<INPUT TYPE="hidden" NAME="thank_you_title" VALUE="Thank for applying at squad">
<INPUT TYPE="hidden" NAME="return_link_url" VALUE="http://www.yourdomain.com/body.htm">
<INPUT TYPE="hidden" NAME="return_link_name" VALUE="Back">
<INPUT TYPE="hidden" NAME="background_color" VALUE="#000000">
<INPUT TYPE="hidden" NAME="text_color" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="link_color" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="visited_link_color" VALUE="#FFFFFF">
<INPUT TYPE="hidden" NAME="active_link_color" VALUE="#FFFFFF">
</CENTER></H3>
<H3><CENTER>
<table width="859" height="351" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="286" height="26"><font size="4">Enter Real Name:</font></td>
<td width="260" height="26"> <input type="text" name="Your Real Name:">
</td>
</tr>
<tr>
<td width="286" height="26"><font size="4">Enter your ICQ #:</font></td>
<td width="260" height="26"> <input type="text" name="Enter your icq #:">
</td>
</tr>
<tr>
<td width="286"><font size="4">Game call sign:</font></td>
<td width="260"> <input type="text" name="game call sign:"> </td>
</tr>
<tr>
<td width="286"><font size="4">State You Live In:</font></td>
<td width="260"> <input type="text" name="State You live in:"> </td>
</tr>
<tr>
<td width="286"><font size="4">Your Age:</font></td>
<td width="260"> <input type="text" name="Your age:"> </td>
</tr>
<tr>
<td width="286"><font size="4">How Long have you been playing:</font></td>
<td width="260"> <input type="text" name="How long have you been playing:"size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">How often do you get to play:</font></td>
<td width="260"> <input type="text" name="How often do you play:" size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">How did you hear of the squad:</font></td>
<td width="260"> <input type="text" name="How did you hear of the squad:" size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">When Is a good time for a tryout:</font></td>
<td width="260"> <input type="text" name="When is a good time for a tryout:" size="25">
</td>
</tr>
<tr>
<td width="286"><font size="4">Your Email address:</font></td>
<td width="260"> <input type="text" name="Email address:" size="25">
</td>
</tr>
<tr>
<td width="286" height="26"><font size="4">What type of connection do
you have</font></td>
<td width="260" height="26"> <input type="text" name="What type of connection do you have:">
</td>
</tr>
<tr>
<td width="286"><font size="4">Do you agree to ICE bylaws:</font></td>
<td width="260"> <p> <font size="4">
<input type="checkbox" name="Do you agree to bylaws" value="yes">
Yes</font></p>
<p> <font size="4">
<input type="checkbox" name="Do you agree to bylaws" value="no">
No </font></p></td>
</tr>
</table>
</CENTER></H3>
<P> </P>
<BLOCKQUOTE>
<P align="center">
<INPUT TYPE="submit" NAME="Submit"
VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</P>
</BLOCKQUOTE>
<P> </P>
</FORM>
</BODY>
</HTML>
ie: i think "your_email_address" should be "recipient"
[you need to read the 'readme' file distributed with the formmail package]
Let us know how you get on!
wruk999
<edit>typo</edit>