Generic Feedback Script

The following code is a basic example of how to use the generic Atlbiz feedback script. By coping the code below and modifying the lines highlighted in blue, you can immediately have a working feedback form.

Below the code is an explanation of each line and how it should be customized for your site. In most cases, you will only need to edit lines 2 through 4 and replace lines 7 through 9 with your specific fields to have a working form.
Note: Line numbers on the left should be removed after copying code.

1. <form method="post" action="http://atlbiz.net/scripts/feedback/submit.cfm">
2. <input type="hidden" name="from_default" value="Feedback@YourDomain.com">
3. <input type="hidden" name="to" value="YourEmail@YourDomain.com">
4. <input type="hidden" name="resultsurl" value="http://YourDomain.Com/Results.htm">
5. E-mail Address: <input type="text" name="from">
6. Subject: <input type="text" name="subj">
7. Your Name:</font></td> <input type="text" name="name">
8. Best Time to Call: <select name="timetocall"><option>AM<option>PM</select>
9. Your Message: <textarea name="comments" wrap="physical" rows="6" cols="60"></textarea>
10. <input type="submit" value="Submit">
11. </form>

Line 1: This is the start of your form and should be used exactly as shown above.

Line 2: This optional line indicates who the system will list as the sender of the e-mail if the "from" field (line 5) contains an invalid e-mail address. Since most sites use the visitors e-mail address as the sender's address, it's important to list a fall back address in case they mis-type their address (very common).

Line 3: This required field indicates who to send the feedback form to. You need to replace "YourEmail@YourDomain.com" with your e-mail address.

Line 4: This optional field indicates what webpage the visitor will be re-directed to after submitting the form. If you do not specify this, the visitor will be re-directed to the Atlbiz homepage. You should replace "http://YourDomain.com/results.htm" with the url of your results page which should tell the visitor their information has been received or something similar.

Line 5: This required field tells the system who to list as the sender of the e-mail. By letting the visitor supply their e-mail address, this lets the system send you an e-mail from them. You can then click reply in your e-mail client and respond directly to them. If they do not put a valid e-mail address in this field, the system will use the field "from_default" shown on line 2. Without a valid e-mail address to use as the sender, the mail server will delete the message so it's important to set the "from_default" field on line 2 if the visitor supplies the value of the "from" field.

You can optionally use a hidden form field for the "from" address in which case you will not need the "from_default" field. When hard coding the "from" field, you will always receive an e-mail from the same address which can be beneficial in certain circumstances.

Line 6: This required field sets the subject line of the e-mail and can be hard coded with a hidden field or visitor supplied as shown above.

Lines 7-9: Lines 7 through 9 show examples of common form fields. This fields will be automatically detected by the script and put into the e-mail.

Line 10: This is the standard submit button used to send a form.

Line 11: This is the end of your form and is required for browsers to display your form properly.



Logout

Atlanta Internet Consulting, Inc. © Copyright 2001, All Rights Reserved
4920 Highway 9, # 112, Alpharetta, GA. 30004 | P (678) 947-8139 | webmaster@atlbiz.com