Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 18, 2007, 03:50 PM   #1
TuckBodi
macrumors 6502
 
Join Date: Jan 2007
Ajax Contact Form with Captcha

I'm in a time crunch and need to come up with a contact us form for a web page and I'm looking for one using PHP, Ajax and Captcha (image verification). With the Ajax (& Javascript) part I want to be able to validate the required fields, post the info from the form without leaving the page, then clear the fields and post a message above everything if it was successful (or error out if not).

Sounds straightforward and I've found some out there which do some of these but not all. Anybody have any ideas of anything out there, preferably free/open source?

Thx
TuckBodi is offline   0 Reply With Quote
Old Dec 19, 2007, 04:28 PM   #2
synchrophasotro
macrumors newbie
 
Join Date: Dec 2007
Well, seems this ajax contact form is exactly what you are looking for. Unfortunately it's not free - $10 annual subscription. Their contact page is a demonstration of the working contact form. Hope this was useful at least a little bit.
synchrophasotro is offline   0 Reply With Quote
Old Dec 19, 2007, 05:11 PM   #3
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
This wouldn't be overly hard to write, especially if you start from someone else's solution. I have a version that validates with JavaScript before submitting, uses textual captcha, but no AJAX (though runs with a single PHP file). I wouldn't want to use AJAX the way you're suggesting. Just seems unnecessary.

I prefer a textual captcha over an image one because it's more accessible to those with disabilities.
angelwatt is offline   0 Reply With Quote
Old Dec 21, 2007, 10:40 AM   #4
thejadedmonkey
macrumors 604
 
thejadedmonkey's Avatar
 
Join Date: May 2005
Location: Pa
Send a message via AIM to thejadedmonkey
Quote:
Originally Posted by angelwatt View Post
This wouldn't be overly hard to write, especially if you start from someone else's solution. I have a version that validates with JavaScript before submitting, uses textual captcha, but no AJAX (though runs with a single PHP file). I wouldn't want to use AJAX the way you're suggesting. Just seems unnecessary.

I prefer a textual captcha over an image one because it's more accessible to those with disabilities.
Where exactly would you use AJAX then? I'm not looking to argue, but curious as I always thought that examples like these are the perfect places to use AJAX.
__________________
MacBook 17" MacBook Pro iPod Nano Apple TV
PS4 Custom Windows 8.1 Desktop WP8
"Good judgment comes from experience,
experience comes from bad judgment."
- Mulla Nasrudin
thejadedmonkey is offline   0 Reply With Quote
Old Dec 21, 2007, 01:30 PM   #5
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
Quote:
Originally Posted by thejadedmonkey View Post
Where exactly would you use AJAX then? I'm not looking to argue, but curious as I always thought that examples like these are the perfect places to use AJAX.
Off the top of my head some good AJAX I've seen is Google Suggest (auto completion that talks to a server database) and the way Yahoo Mail makes use of it. Google Reader also does a good job pulling in RSS updates in the background.

The example here isn't necessarily a bad place for AJAX, just not one I'd be comfortable with. It's kind of a usability concern. The user submits, then the form goes blank and the users goes AHHH! and perhaps doesn't see the "submitted successfully" message. Not seeing it in action though, this may not be a huge concern. I also hope that the form works with JavaScript disabled.
angelwatt is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone contacts syncing with Exchange afousek iPhone 4 Nov 18, 2011 08:03 PM
Free Contact Manager with Group Email & SMS ~ Tacts Mini TernTek iPhone and iPod touch Apps 0 Jan 3, 2011 11:21 AM
Help a newbie with rapidweaver - Contact form not working? 007bond Web Design and Development 2 Jul 20, 2010 09:58 AM
Contact form with CGI/PHP not available? torndownunit Web Design and Development 4 Jan 26, 2010 01:14 PM
I need help with contact form denisl Web Design and Development 7 Sep 19, 2009 06:07 AM


All times are GMT -5. The time now is 01:05 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC