|
|
#1 |
|
Agreement form on a website?
I'm trying to build a page where a person would enter some personal info in order to register for classes. It would contain their name, address, phone, several check boxes with a text entry lines, and at the bottom it would contain a check box for agreement. Then they'd submit the form, and the info would get sent through email.
Is there some kind of a PHP script already available that could do this? I don't know PHP, so coding it from scratch is out of the question at the moment. I've tried the fast secure contact form script, but it didn't exactly look presentable, and I couldn't achieve some of the things that I wanted out of the form. Plus the checkbox kept prompting me for data (which I don't require except that the checkbox be checked). |
|
|
|
0
|
|
|
#2 |
|
Hey,
This is pretty straight forward to do. Getting the information from the form and emailing it is easy enough, the more difficult side is validation, ensuring the user enters the correct data etc. You can do validation checks in the PHP script, or you can use Javascript to check the data before passing it to the PHP script. I prefer to use jQuery for validation before actioning the PHP script. I suppose it comes down to personnel preference. Anyway, here's an example: HTML Form: Code:
<form method="POST" action="mail.php"> <label>Name:</label> <input type="text" name="name" /> <label>Phone:</label> <input type="text" name="phone" /> <label>Address</label> <textarea name="address"></textarea> <input type="checkbox" name="checkbox" value="checkbox" /> <input type="submit" value="Submit" /> </form> PHP Code:
If you can supply the code for the form you are using I would be able to explain exactly what you need in your PHP script. |
|
|
|
0
|
|
|
#3 | |
|
Quote:
Sure you can validate on the client side with jQuery but you still need to validate on the server side as well. It is either server only or server and client validation but never client validation only.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development Last.fm Profile | Extreme Metal Reviews MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3 |
||
|
|
0
|
|
|
#4 | |
|
Quote:
Very well said, silly mistake to make. I always used to do validation solely server side, it's only recently I've starting doing both. |
||
|
|
0
|
|
|
#5 |
|
There are lots of services out there, many of them free, that will do that for you.
__________________
[ A&M: 41 OU: 13 ]
|
|
|
|
0
|
|
|
#6 | |
|
Quote:
|
||
|
|
0
|
|
|
#7 |
|
Check out jotform and email me form. Both have free versions, neither of which is perfect, but they're a decent place to start.
__________________
[ A&M: 41 OU: 13 ]
|
|
|
|
0
|
|
|
#8 | |
|
Quote:
|
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| can't access certain websites on my ibook G4 | martymcfly1885 | MacBook | 0 | Nov 20, 2010 11:46 AM |
| Hosting File for Download on Website | shpint | Web Design and Development | 1 | Nov 8, 2010 05:51 AM |
| What Online Website Chat Software do you use on your website? | macsrules | Web Design and Development | 8 | Apr 5, 2008 03:37 PM |
| Actor Employment Agreement form | freebird2003 | Digital Video | 0 | Sep 27, 2007 06:29 PM |
All times are GMT -5. The time now is 10:23 AM.








Linear Mode

