Help : Create a Contact Form
This page shows you how to add a contact form to your ContractBridge.net website. These instructions apply to clubs which do not use their own domain name (e.g. www.contractbridge.net/teawamutu). If you would like to use this form with your own domain, please contact us for instructions.
Step 1: Contact us and let us know that you want to use this form — we need to enable it on your account first.
Step 2: Copy and paste the HTML code below into your web page where you want the form to appear.
Step 3: Change the word clubname to match your club's username, e.g. teawamutu.
|
<form method="post" action="http://www.contractbridge.net/cgi-bin/bnbform.cgi">
<input type="hidden" name="club" value="clubname">
<input type="hidden" name="ok_url" value="/form-thanks.html">
<input type="hidden" name="not_ok_url" value="/form-error.html">
<input type="hidden" name="data_order" value="Name,Email,Phone,Message">
<input type="hidden" name="required" value="Message">
<input type="hidden" name="emailfile" value="email.log">
<input type="hidden" name="outputfile" value="form.log">
<input type="hidden" name="form_id" value="Message Sent via Website">
<table width="500" border="0" align="center" cellpadding="12" cellspacing="0">
<tr>
<td width="100" valign="top"><b>Name:</b></td>
<td valign="top"><input name="Name" size="20"></td>
</tr>
<tr>
<td valign="top"><b>Email:</b></td>
<td valign="top"><input name="Email" size="20"></td>
</tr>
<tr>
<td valign="top"><b>Phone:</b></td>
<td valign="top"><input name="Phone" size="20"></td>
</tr>
<tr>
<td valign="top"><b>Message:</b></td>
<td valign="top"><textarea name="Message" cols="50" rows="5"></textarea></td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top">
<input type="submit" value="Send Message" name="submit">
<input type="reset" value="Reset Form">
</td>
</tr>
</table>
</form>
|
Customizing the Form
You can customize the form however you like, as long as the form tags remain intact.
Changing the Post-Submit Messages
To change the messages which are shown to users after the form is submitted, create two new web pages:
(1) A success page, e.g. "Thanks for contacting us".
(2) A failure page, e.g. "Please click your back button and fill out the form correctly".
In the HTML code, change the value of the "ok_url" (success) and "not_ok_url" (failure) to point to your new pages. The URL should include your clubname like so: "/teawamutu/form-thanks.html".
For more help please contact us.
|