http://www.bignosebird.com/formls1.shtml
The above link will give you a simple form (and how to pass it to an email)
To explain this simply for you:
1) you need to start the form inside the HTML with a
tag.
2) You will need to do this
Code:
<FORM METHOD="POST" ACTION="http://www.yourdomainnamehere.com/cgi-bin/bnbform.cgi">
<INPUT TYPE="hidden" NAME="to" VALUE="emailaddresstogetdata@yourdomainnamehere.com">
<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Web Site">
<INPUT TYPE="hidden" NAME="required" VALUE="name,submit_by">
<INPUT TYPE="hidden" NAME="form_id" VALUE="info request from website">
<INPUT TYPE="hidden" NAME="submit_to" VALUE="emailaddresstogetdata@yourdomainnamehere.com">
<INPUT TYPE="hidden" NAME="data_order" value="name,company,address1,address2,address3,town,county,country,postcode,telephone,submit_by,questions">
where
emailaddresstogetdata@yourdomainnamehere.com is the email address you use for the form.
3) then you need to decide what you want to receive in information
a) for text such as names
Code:
<INPUT TYPE="text" NAME="name" SIZE=20 maxlength="80" VALUE="">
b) a text box that scrolls....
Code:
<TEXTAREA NAME="questions" ROWS=5 COLS=20>
</TEXTAREA>
c) a checkbox ......
Code:
<input type="checkbox" name="callme" value="yes_please">
d) radio buttons
Code:
Yes <input type="radio" name="like_it" value="yes">
No<input type="radio" name="like_it" value="no">
e) drop downs
Code:
<select name="my_hair_colour_is">
<option>red
<option>pink
<option>blue
<option>striped
</select>
You will ALWAYS need
Code:
<INPUT TYPE="text" NAME="submit_by" SIZE=20 maxlength="80" VALUE="">
as this is their email address and this is always a required field (so you know where to reply to !)
For whatever name you give a field you must enter it in the data_order script bit above otherwise you wont get it. If it is compulsory you must also add it in required bit above too.
And then finally the buttons:
Code:
<INPUT TYPE="submit" VALUE="Send it to us now">
<INPUT TYPE="reset" VALUE="start again">
</form>
That is how you create the form
To make it work you must also create a file in NOTEPAD
save it as : bnbform.cgi
(can be found thanks to bignosebird.com who give it away free) I have put it in the following post....
YOU MUST change this line in the script to work:
Code:
# @okaydomains=("http://www.mydomain.com", "http://mydomain.com");
to be your domain
YOu can then upload the form (save the form as the name of your current form) and the bnbform.cgi
You can FTP by opening your control panel to your domain and selecting file manager on the panel
Then move to /public_html
Upload the form where your current form is.
then move to cgi-bin and upload the bnbform.cgi
TO MAKE THIS WORK YOU MUST CHANGE PERMISSIONS on the bnbform.cgi once uploaded.
click where it says perms next to the form you have uploaded and make it 755
You have successfully changes frontpage form into a unix perl form