javascript to submit a form

pgd

Joined: 2005-12-23
Posts: 15
Posted: Fri, 2005-12-23 20:35

hi all, new to all this code lark, but making progress.

building my photography site, going well.

need some help with a contact form.

got it designed ok, just don't know the first thing about javascript or how to make the submit button work.

read up about onSubmit, Methods and Form action - but the brain just doesn't quite like it.

can someone help me out please.

thanks

peter

 
notgoddess
notgoddess's picture

Joined: 2005-04-03
Posts: 178
Posted: Sat, 2005-12-24 00:32

A contact form in or out of gallery?

For a basic contact form you don't need (and should never require) Javascript.
Most webhosts offer a perl (cgi) form mail with examples of the form inputs to use.
Just check your cgi scripts on your control panel.

Ng

----
If your question has been answered, please finish out your thread with a post on what worked. It helps future people searching for answers and doesn't leave those helping you wondering.

 
pgd

Joined: 2005-12-23
Posts: 15
Posted: Sat, 2005-12-24 11:17

Hi, thanks for the info.

Feedback:
1. I found the cgi scripts on the server
2. I could understand them
3. It worked first time :-)
4. I now get email forms

Well pleased thanks again.

peter