![]() |
| forms and cgi-bin |
|
mrossfeld
|
What goes in the cgi-bin so my form on my website can work?
Thanks, Michelle Rossfeld |
||||||||||||
|
|
|||||||||||||
|
bobclingan
Forum Regular
|
The cgi-bin folder contains any scripts used to process your form, for example a perl script. This would be something you wrote, or modified from something you found online.
|
||||||||||||
|
|
|||||||||||||
| form and cgi bin |
|
mrossfeld
|
Ithe script I will put in my cgi-bin: ( or do have to create a script or have someone create for me. I am not sure what perl is)
<form action="http://www.michellerossfeld.com/cgi-bin/FormMail.pl method="post"><input type="hidden" value=contact@ michellerossfeld.com name="recipient"> <input type="hidden" value="Subject of Emails Sent to You" name="subject"> <TABLE width="368" height="337" border=0 cellPadding=0 cellSpacing=3> <CENTER> <TR> <TD colSpan=2 height=29> <P align=left><B><FONT face=Arial size=1>Please take a moment to fill out the following newsletter request. Newletters are sent out monthly. All information will be kept confidential. Fields in <FONT color=#6699FF>Light Blue</FONT> are required.</FONT></B></P></TD> </TR> <TR> <TD noWrap bgColor=#003399 colSpan=2 height=28><P align=left><FONT color="#FFFFFF" size=2 face=Arial><B>Contact Information:</B></FONT></P></TD> </TR> <TR> <TD noWrap align=right width="50%" height=28><div align="left"><FONT face=Arial color=#6699FF size=2><B>Name :</B></FONT></div></TD> <TD width="50%" height=28><FONT face=Arial size=2><B> <INPUT style="BORDER-RIGHT: #FFFFFF 2px solid; BORDER-TOP: #FFFFFF2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #FFFFFF 2px solid; BORDER-BOTTOM: #FFFFFF 2px solid; FONT-FAMILY: Arial" size=22 name=name> </B></FONT></TD> </TR> <TR> <TD noWrap align=right width="50%" height=28><div align="left"><FONT face=Arial size=2><B>Company Name :</B></FONT></div></TD> <TD width="50%" height=28><FONT face=Arial size=2><B> <INPUT style="BORDER-RIGHT: #FFFFFF 2px solid; BORDER-TOP: #FFFFFF 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #FFFFFF 2px solid; BORDER-BOTTOM: #FFFFFF 2px solid; FONT-FAMILY: Arial" size=22 name=company> </B></FONT></TD> </TR> <TR> <TD noWrap align=right width="50%" height=28><div align="left"><FONT color="#6699FF" size=2 face=Arial><B>Phone :</B></FONT></div></TD> <TD width="50%" height=28><FONT face=Arial size=1><B> <INPUT style="BORDER-RIGHT: #FFFFFF 2px solid; BORDER-TOP: #FFFFFF 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #FFFFFF 2px solid; BORDER-BOTTOM: #FFFFFF 2px solid; FONT-FAMILY: Arial" size=22 name=phone_no> </B></FONT></TD> </TR> <TR> <TD noWrap align=right width="50%" height=29><div align="left"><FONT face=Arial size=2><B>Fax : </B></FONT></div></TD> <TD width="50%" height=29><FONT face=Arial size=2><B> <INPUT style="BORDER-RIGHT: #FFFFFF 2px solid; BORDER-TOP: #FFFFFF 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #FFFFFF 2px solid; BORDER-BOTTOM: #FFFFFF 2px solid; FONT-FAMILY: Arial" size=22 name=fax_no> </B></FONT></TD> </TR> <TR> <TD noWrap align=right width="50%" height=29><div align="left"><FONT face=Arial color=#6699FF size=2><B>E-mail :</B></FONT></div></TD> <TD width="50%" height=29><FONT face=Arial size=2><B> <INPUT style="BORDER-RIGHT: #FFFFFF 2px solid; BORDER-TOP: #FFFFFF 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #FFFFFF 2px solid; BORDER-BOTTOM: #FFFFFF 2px solid; FONT-FAMILY: Arial" size=22 name=email> </B></FONT></TD> </TR> </center> <TR> <TD noWrap width="50%" height=14> <P align=right><B><FONT face=Arial, Arial, Helvetica, sans-serif size=2>How did you hear about us :</FONT></B></P></TD> <CENTER> <TD width="50%" height=14><SELECT style="BORDER-RIGHT: #003399 2px solid; BORDER-TOP: #003399 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #003399 2px solid; BORDER-BOTTOM: #0033992px solid; FONT-FAMILY: Arial" size=5 name=link_from> <option selected>•• please choose one ••</option> <option value="Google">Website</option> <option value="U of M">Advertisement</option> <option value="Looksmart">Friend</option> <option value="Yahoo">Google</option> <option value="MSN">Yahoo</option> <option value="Other">Other</option> </SELECT></TD> </center> </TR> <TR> <TD noWrap width="50%" height=14></TD> <TD width="50%" height=14><p> </p> <p> <INPUT style="BORDER-RIGHT: #003399 3px solid; BORDER-TOP: #003399 px solid; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BORDER-LEFT: #003399 3px solid; COLOR: #000000; BORDER-BOTTOM: #003399 3px solid; FONT-FAMILY: Arial; BACKGROUND-COLOR: #CCCCCC" type=submit value="s u b m i t" name=submit> </p></TD> </TR> </TABLE> </FORM><br> </p> </div></td> <td width="21" align="left" valign="top"> </td> </tr> </table> |
||||||||||||
|
|
|||||||||||||
|
Connie
|
I noticed you are on a server running Windows, so I don't believe it needs to go inside the cgi-bin folder, although it makes things easier.
I'm also not exactly a big fan of using FormMail, I prefer ASPmail whenever I can use it. Here is more about it, http://hostmysite.com/support/programming/aspmail/ |
||||||||||||
|
|
|||||||||||||
| forms and cgi-bin |
|
||
|


