Click to See Complete Forum and Search --> : trouble with a form! HEEELLLPPP!


ctrl-t
12-09-2003, 06:44 AM
Hi everybody!

I was wondering if someone could help me with a form.
I used Dreamweaver MX to make my form, but I can't get it to work properly!
My form opens the Outlook Express, but the content area stays empty! (where did I go wrong?)

My second problem is:

What can i do to prevent Outlook Express to open.
(I want the info mailed to me in the background)
How can i achieve such thing??

I attached my bad form I made in Dreamweaver!

Please help! :confused:

olaf
12-09-2003, 07:16 AM
Hallo,

of course you can mail a form to an e-mailaddress while using mailto, but you need a script language to bundle all formfields to one body string.

ctrl-t
12-09-2003, 07:18 AM
Ok..... But how?

soccer362001
12-09-2003, 01:29 PM
If your server supports PHP I would use that instead.

olaf
12-09-2003, 01:52 PM
Originally posted by ctrl-t
Ok..... But how?

what kind of script-lang you can use?

ctrl-t
12-09-2003, 04:48 PM
Dear Olaf

The server my site runs on supports PHP 3+4, but I have no knowledge of PHP yet!
It also supports Perl 5.6!

Greetz... Ctrl-T

soccer362001
12-09-2003, 04:56 PM
Take a look at this http://www.webdevfaqs.com/php.php#mailer

ctrl-t
12-09-2003, 05:27 PM
Originally posted by soccer362001
Take a look at this http://www.webdevfaqs.com/php.php#mailer

Thanx soccer362001 for this usefull link!

I think I'll learn from it!
I'm going to test the sample script soon!
I'll get back here weather it works or not... just to let ya know!

:cool: Thanx again!

soccer362001
12-09-2003, 06:40 PM
Your welcome

ctrl-t
12-09-2003, 07:30 PM
I tested the script and it works!!!
GREAT

Now I would like to add some formvalidation....
how can I do that in the script provided at www,webdevfaqs.com/php.php#mailer ??????

I need validation on
phonenumbers (containing only digits and dashes)
e-mail (containing "@" and some domain ".???")
a date (containing some year "1900" or "2002")
all enties filed

etc. etc.

Can I do this in the "mailer.php", or do I have to add a normal html-like validation in the formdocument???????

olaf
12-10-2003, 12:37 AM
Hi,

it's up to you: You can use a serverside validation using php or you can do this onthe clientsise using Javascript. If you are familar with the clienside i suggest to this. The good point here is that no access to webserver is needed during the validation.

soccer362001
12-10-2003, 07:20 AM
Yes I would recommend JavaScript for validation.

screaming_banjo
12-10-2003, 08:35 AM
Not sure if any are worthwhile, but there are some form validation scripts here:

http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=form+validation&catid=26

May be worth a look!

HTH