Technology Trends & Opinion » Blah, Blah! Technology blog

Where the tech' views are 667% more interesting than the tech' news itself…

My personal web pages and profiles




The Beginner's Guide to Social Media ebook button

Tag Cloud


A graphic with the words: 'Subscribe to Blah, Blah! Technology'

social networking


Twitter button FriendFeed button Facebook button

« »

Respondr contact form for websites and blogs

Friday, 12 September 2008 — by

Need a contact form for your website or blog? Respondr is all you need…

Respondr

Having spent years just making do with freeware response forms, a few months ago, I decided enough was enough and I wrote my own, which I’ve been using on my Contact page ever since.

Respondr is a freeware response form for websites and blogs running on PHP, which features:

  1. A built-in CAPTCHA, for blocking automated spam ‘bots.
  2. Form field error checking and error messages (email address, post / zip code, telephone).
  3. The ability to block certain websites, email and IP addresses from sending messages to you.
  4. To tie the form to your website and your website alone, preventing form script hijacking.
  5. Fully customize your own Error and Thanks pages.
  6. Send messages to you, CC and BCC recipients.
  7. Set specific fields to be mandatory.

Installing & Configuring the Respondr contact form scripts

System requirements: a server running PHP 4 and above.

If you’re web developer with HTML and PHP experience, all should be pretty straight forward hereon
in.

1. Download the Respondr archive and decompress the ZIP archive.

Keep the downloaded archive to hand until you’ve got everything installed and working.

2. Using your FTP client of choice, upload the files & folders to your websites’ root directory.

Don’t upload the Respondr folder itself, just the files & folders it contains.

3. Make the required edits to the Respondr class file (class.respondr.inc.php).

At the top of the class file, you’ll see an array ($arrayClassAttributes) with 4 nested array items: ‘referer’, ‘blocked’, ‘ignore’, ‘missing’. Yes, I know the first array index name is spelt wrong! But they’re all the same length.

For the first array item, add your IP address and web address variations to the fields, outlined. This locks the form to you and only you.

For the second array item, add in all of the email addresses you want to block out sending messages to you.

For the third array item, add in any fields you would like to be ignored and not included in the emails sent to you. The fields currently listed are important to the functioning of Respondr, but need to be ignored in the emails sent out.

The second array ($arrayEmailAddresses) contains three elements that list the recipient fields. You can add as many email addresses as you like to each field, comma separating each.

4. Make the required edits to your response form page.

Inside the actual contact form itself (contact.php), you’ll find a HTML form element. Inside this form element are all of the hidden fields that are required for Respondr to do its thing.

<input type="hidden" name="require" value="name,email_address,comments,security_code" />

These are the required fields you wish to have completed by your visitor when they send the form to you. If they’re not complete, they get to see your new Error page.

<input type="hidden" name="secured" value="security_code" />

This instructs Respondr that you intend using the CAPTCHA. It’s worth noting, even in the CAPTCHA is included within the form, if this hidden field isn’t present, the CAPTCHA won’t work.

<input type="hidden" name="success" value="http://www.blahblahtech.com/thank-you" />

This instructs Respondr where to find your Thanks page.

<input type="hidden" name="failure" value="http://www.blahblahtech.com/error" />

This instructs Respondr where to find your Error page.

<input type="hidden" name="sorting" value="alphabetic" />

This is a sorting option. Currently, alphabetical is the only option.

<input type="hidden" name="subject" value="Blah, Blah! Technology Response Form" />

This is the subject line of the email sent to you, once the visitor has completed your response form fully and without errors.

<input type="hidden" name="environ" value="REMOTE_HOST, REMOTE_ADDR, REMOTE_USER, HTTP_USER_AGENT, HTTP_REFERER" />

These are the environmental variables harvested from your visitor, which are added to the email sent to you, once the visitor has completed your response form fully and without errors.

5. Add the code to the Error page.

For the purposes of the Thanks page, any page will do, so long as it has the same name as the one detailed in the corresponding hidden field.

As for the Error page, then you’ll need to add the code included in error page (error.php).

This code will generate the list of descriptive errors to your visitor, telling them which mandatory fields they didn’t complete.

If you decide to poke around inside the CAPTCHA class file (class.captcha.inc.php), you’ll find options to customize the various colours of the text and the background, so you can match to your own website or blog.

Support

If you have any questions, you can post your comments on the Respondr Discussion Board over on the official ‘blog Facebook Page.

Remaining features for Respondr and disclaimer

An image with the words: 'Subscribe to Blah, Blah! Technology'

« »



Regulars


Comment and be known


No Comments Yet

Sorry Comments are close. Quite possibly for a good reason. Share your thoughts on some of my other posts or contact me directly.

» Subscribe to the comments feed


© Copyright Octane Interactive Limited, 1999 – 2017Search, Social Media Marketing & Optimization, Web Design & Development for Businesses | Contact | All about Blah! | Home