Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Example "Request a Callback" Form Script Wanted Please

Status
Not open for further replies.
Joined
Apr 26, 2005
Posts
7,410
Reaction score
148
Hi Guys

I am looking for a simple form PHP script which allows a website visitor to provide their telephone number so the website owner can phone them back.

The form would need to take the visitor details as follows:

Your Name
Your Tel
Best Time to Call
Your Email

and then e-mail those details to the website owner.

I would be most grateful if anyone could point me to good example PHP scripts (either callback scripts or contact forms) as I know this is pretty common functionality. I do know how to do this stuff, I just want some "best practice" examples to follow.

Many thanks
 
Thanks for the replies so far, very useful. If anyone has further suggestions, please let me know.

Rgds
 
This is more basic info based on my experience rather than solutions.

You may have to suffer a little with spam on this one, I have found complex capture boxes on callback forms is a major off put, people want them to be quick and exact and trying to guess what a capture is a turn off.

I use "name, optional email, phone number, time", now dependant on usage I have found a check box to include a comment was often very useful to have, as people put helpful things in there, just 3 rows text area.

With the time to call, you are better giving information like we call between the hours of 8am-8pm, then options such as "8am-10am, 10am-12pm, 12pm-2pm, 2pm-4pm, 4pm-6pm, 6pm-8pm". I did experiment with "Morning, Mid Day, Afternoon, Evening" as more vague options and I tried both so top of the list was vague options, bottom was 2 hour blocks. Down to type of business, a loan company vague maybe a negative option, but a plumber its not so bad.

A little more advanced option which may interest you...

I did a call back script for a plumber where he was run off his feet with all the icy weather the year before last and wanted to be ready for last year.

I opened a text message gateway account, google php text message send or something for a list of companies. The one I chose for this job provided a set of php functions new object, sendmessage $num, message and done.

An Urgent form was added to the side bar of his site. It defaults the time to ASAP but did give options too, then it tests for land line or mobile number and if its mobile number a text message is sent to the person that says "Hello $name, we are a confirming a callback time of $time from $site, if you need to change anything hit reply or call sender, Plumbers Name".

I added an IP record, and number to a database with a cookie to try and limit abuse, from people using it annoy others, so only 1 message could be sent to each number.

I also added a function to text the plumber which says "CBR! N: Bob T: +44 E: bob@ W: 15 (14:00-16:00 with 0 being ASAP) M: Comment" which I sent using T: as the originator-id, so the plumber can just reply or call from his phone regardless of mobile or land line.

It was a nice little setup, and perfect for the job. I think the texts was about 7-8p each, I'd have to dig up the details.

The only hassle was the regex to validate the email and number, but I just recycled code for that bit.
 
You may have to suffer a little with spam on this one, I have found complex capture boxes on callback forms is a major off put, people want them to be quick and exact and trying to guess what a capture is a turn off.

Yes, I'm going to try it without CAPTCHA first, to keep it short and sweet. Thanks for the other comments.

Rgds
 
Just to say (for anyone else) i have 2 forms on the site on me sig (book now! and contact pages) from the link i named above.

Both have very easy to read captchas. They have been live for 6 months. The site receives approx 30 uniques a day. So far there has been zero spam.




.
 
Stupid Auto Correct won't let me type type Captcha on my droid, well actually it will let me but soon as I hit send it asks me to correct the spelling. Really need to sort that out, its one of the apps I installed.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

No members online now.

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom