Click here to visit our Sponsor

bnbform.gif (5369 bytes)

How do I install this script?

You will need to install this script through your console.


How do I call this script from my pages?

You will need to put the following code in your page:

<FORM METHOD="POST" ACTION="/cgi-bin/bnbform.cgi">


Can I make certain fields required?

Yes,  to do this you will need to put the following code in your page:

<INPUT TYPE="HIDDEN" NAME="required" VALUE="name of fields you want required separated by a comma">

**NOTE**  NAME="required" must appear as is!!


Can I specify the order of the fields in the mail?

Yes, to do this you will need put the following code in your page:

<INPUT TYPE="HIDDEN" NAME="data_order" VALUE="names of the fields in the order you want them to appear separated by commas">

**NOTE**  NAME="data_order" must appear as is!!


Can I give a custom error/thank you page?

Yes,  to do this you will need put the following code in your page:

For the error page add the following:

<INPUT TYPE="HIDDEN" NAME="not_ok_url" VALUE="http://yourdomain.com/oops.shtml">

**NOTE** NAME="not_ok_url" must appear as is!!  Also the Value must be formatted as shown with the http:, if you use relative paths, it will not work!!

For the thank you page add the following:

<INPUT TYPE="HIDDEN" NAME="ok_url" VALUE="http://yourdomain.com/thanks.shtml">

**NOTE** NAME="ok_url" must appear as is!!   Also the Value must be formatted as shown with the http:, if you use relative paths, it will not work!!


Can I write the form data to a file?

Yes,  to do this you will need put the following code in your page:

<INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="form.log">

**NOTE** NAME="outputfile"  must appear as is!!  Also you must label the field that contains the visitors email address "submit_by" or else this option will not work!!  This file will show up in the cgi-bin/ directory


Can I collect just email addresses to a separate file?

Yes,  to do this you will need put the following code in your page:

<INPUT TYPE="HIDDEN" NAME="emailfile" VALUE="mail.log">

**NOTE** NAME="emailfile"  must appear as is!!  Also you must label the field that contains the visitors email address "submit_by" or else this option will not work!!  This file will show up in the cgi-bin/ directory


Can I autorespond with a text file?

Yes,  to do this you will need put the following 2 lines of code in your page:

<INPUT TYPE="HIDDEN" NAME="autorespond" VALUE="yes">

**NOTE** NAME="autorespond" & VALUE="yes" must appear as is!!

<INPUT TYPE="HIDDEN" NAME="automessage" VALUE="message.txt">

**NOTE** NAME="automessage" must appear as is!!  The message file must be in /cgi-bin/ directory.


Can I specify the Subject line of the Email?

Yes,  to do this you will need put the following code in your page:

<INPUT TYPE="HIDDEN" NAME="form_id" VALUE="What you want the subject to be">

**NOTE** NAME="form_id" must appear as is!!


 Why doesn't the outputfile/emailfile option work?

Have you labeled the email field in your form to submit_by?  This is the primary reason for this option not working!!

Back to the Index