Click to See Complete Forum and Search --> : My first form


turbodurso
08-18-2008, 03:04 PM
Hello there,

I've browsed tutorials and codes but it gets confusing in the "explaining" and i'd like to understand what i'm doing -

Basically i just need to validate this form and send it by e-mail to a number of recipients -

Could someone be kind enough to walk me through the process?

here is the link of the unstyled form :

http://www.turbodurso.dreamhosters.com/untitledmuse/form.html

A few of these will be required or have dropdowns -

Thanks in advance!

eCat
08-18-2008, 05:35 PM
You posted this in the PHP forum, but you don't need PHP if you just want to validate & send the data via email. You can do that with a sendmail script (on your web host's server) and some javascript for validation.

Is that all you want to do?

PHP comes in handy if you're posting your data to a database. Or if you want to do some more complex, server-side validation.

eCat

turbodurso
08-19-2008, 05:24 AM
sendmail script? in what language? looked through my web host didnt find anything ;)

And i thought a form needed both server side and client side validation in case the user had javascript turned off ...

Mr. E. Cryptic
08-19-2008, 06:03 AM
sendmail (http://www.sendmail.org/); some hosts will have it installed by default, some will not. I've even seem some that exclude it's use due to security bugs (that to be fair, mainly only effect older versions).
(Some hosts will alternatively use the formmail or formmail clone).

It's been a long time since I've used any of these and don't know what level they're at now, but I've bad memories, I think you would be better off with PHP.

Here's a few simple tutorials that'll get you started: email (http://www.w3schools.com/php/php_mail.asp) - more secure email (http://www.w3schools.com/php/php_secure_mail.asp)