View Full Version : Form Submittion

05-17-2005, 05:12 PM
I have a form that I need sent to a particular e-mail address and it's not working. Anyone know how to do this? The code is below:

alue="Send Form" name="Submit"> <A HREF="mailto: diadlld@aol.com@aol.com"><input type="reset" name="Submit2" value="Reset"> <A HREF="mailto: diadll@aol.com">
</font></p></form></td></tr> </table><br> <br> </div><div align="center"> <table cellpadding="3" bordercolor="#666633" width="582">

Thanks for all your help.

05-17-2005, 05:20 PM
I'm not entirely sure whatyou are trying to do... Making clickable inputs?

Maybe you'd better try this one first:

05-17-2005, 05:36 PM
I am trying to get the form on http://www.dreamsonthefly.com/registrationkidscampdd.html to (when completed) sent to an e-mail address

05-17-2005, 06:08 PM
You should use this:

<form action="mailto:you@yourserver.com" method="post" name="registration">

at the beginning of your form code...

I'd also recommend that you take a look at these html errors (http://validator.w3.org/check?verbose=1&uri=http%3A//www.dreamsonthefly.com/registrationkidscampdd.html) and these css errors (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//www.dreamsonthefly.com/registrationkidscampdd.html) . There are several errors in your HTML and in your CSS It looks like you've got multiple doctype declarations and using multiple IDs on different elements.

ID's should be unique one-time-only style, if you are going to use a style multiple times I'd recommend just making it a standard class.

And I don't really understand why you have so many font classes created...You should never need to declare that many font classes. You should be trying to combine repetative attributes into one class rather than declaring every possible font and font size to use.

For example: If you want one paragraph to be highlighted as important with a different background colour, bordered and italic text you would create a class like this

.important {
background-color: #CC9999;
border: 1px solid #CC3399;

Rather than declaring

.italic {
background-color: #CC9999;
border: 1px solid #CC3399;

It makes for more concise code and easier for people to figure out problems :thumbsup:

05-17-2005, 06:15 PM
I am so new at html, I am not sure exactly how to correct the errors on the Validator. Most of the Htlm codes I copied from the old website and pasted it into the new site I took over, so the codes were already written. I just changed the parts I needed to coordinate with the page I was re-vamping. then in addition I am using the host Homestead and they write additional script on the pages. I am so in need of understanding all of this, but since I am so new I am trying my darnedest to make it work properly.

05-17-2005, 07:02 PM
I'll take a look when I get home, I'm just heading out of the office atm, I'll post the code cleaned up a bit :thumbsup:

05-17-2005, 07:04 PM
Oh Channey, your help would be much appreciated. Thank you!

05-18-2005, 02:12 PM
But will you learn of that? PLease read some (x)html tutorials before you post such a question. There probably are thousands of form examples lying around on the Net. Search first, ask questions later.

05-18-2005, 06:45 PM
Hi dreamsonthefly,

First things first, you are missing a ; in your javascript code...

As I said in my original post, you had lots of repetative code, I took the code and stream lined it.

My Code (http://members.shaw.ca/umbralsea/testing/kidscamp2.html)

You will notice when you look at my code that I've changed several things:

Way, way too many repetitive font formatting in your code. Set the default code to one thing then you only have to format the special parts. Redundancies in your tables with the width tags in particular.

Checkboxes will allow multiple answers where radios allow only one to be selected ( so long as they have the same name ). In my version of the code I switched the checkboxes to radios so you could see how it works.

I started my version of the css from scratch and used only what was needed. I've made lots of notes in the CSS file to explain why some code is used, compare it to your own original code.

Here are some pages that I direct my students to when they are first learning HTML and CSS:

W3 Schools (http://www.w3schools.com)
HTMLDog (http://www.htmldog.com)
Mezzoblue Crib Sheet (http://www.mezzoblue.com/css/cribsheet/)
CSS Zen Garden (http://www.csszengarden.com)
WebMonkey (http://webmonkey.com)
A list Apart (http://www.alistapart.com)

Code Validators:

HTML Validator (http://validator.w3.org/)
CSS Validator (http://jigsaw.w3.org/css-validator/)

Most often if you check your code through the validator you will find the errors you need to fix. Good luck :thumbsup: