bnbform.gif (5369 bytes)


  1. How do I install this script?
  2. How do I call this script from my pages?
  3. Can I make certain fields required?
  4. Can I specify the order of the fields in the mail?
  5. Can I give a custom error/thank you page?
  6. Can I write the form data to a file?
  7. Can I collect just email addresses to a seperate file?
  8. Can I autorespond with a text file?
  9. Can I specify the Subject line of the Email?
  10. Why doesn't the outputfile/emailfile option work?
  11. The Official BNBFORM site

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 seperated 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 seperated 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.htm">

**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.htm">

**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 seperate 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

© 1997-1999 Internet Quality Services Corporation. All rights reserved.