PHP Mail Form Script
- Started
- Last post
- 9 Responses
- AlsoKnownAs
Can you recommend a (free) PHP form processing script?
The ones I've been trying out always seem to have at least one bug that makes them not 100% good to use.
Please only suggest ones that you have tested yourself and know to work as advertised.
Obliged...
- determinedmoth0
PHP is free to use ;)
I build my own.
Can you code?
- determinedmoth0
Is it just to Email the form?
I guess I can give you some pointers.
- AlsoKnownAs0
Haha... yes I know PHP is free.
I can code PHP but I thought I'd save myself the trouble & time by picking up a premade script from a script library somewhere.
Getting all the error checking logic sorted out seems like a bit of a chore, but maybe you're right.
Thanks for the offer of pointers though.
- unfittoprint0
as pointed by da moth
a [basic] formmail php script will just retrieve you form vars and use mail to send it.
- AlsoKnownAs0
Thanks UFP, that's great, very much appreciated.
It's the validation part that I was hoping to avoid writing myself. Y'know, letting user know if they've omitted a particular field.
Looks like I need to do it though.
- determinedmoth0
Hmm.
$name = $_POST['name'];if ($name == '') {
$error_msg.="Please enter name"; }echo $error_msg;
Or something..
- determinedmoth0
Or just post your HTML form and if I'm bored enough (with no promises) I'll stick something in for you.
- AlsoKnownAs0
Thanks, that would be great.
I'll first give it go though, you've inspired me.
With the help of your previous validation tip, I think I may just be okay now.
;^J
- determinedmoth0
Check the examples here:
http://uk2.php.net/manual/en/ref…It's a good place to start.