Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: Form Submittion

  1. #1
    Regular Coder
    Join Date
    Nov 2003
    Location
    Seattle
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Submittion

    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.
    Dreams on the Fly
    http://www.dreamsonthefly.com

  • #2
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not entirely sure whatyou are trying to do... Making clickable inputs?

    Maybe you'd better try this one first:
    http://www.w3schools.com/html/html_forms.asp

  • #3
    Regular Coder
    Join Date
    Nov 2003
    Location
    Seattle
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form Submission

    I am trying to get the form on http://www.dreamsonthefly.com/regist...idscampdd.html to (when completed) sent to an e-mail address
    Dreams on the Fly
    http://www.dreamsonthefly.com

  • #4
    New Coder
    Join Date
    Feb 2005
    Location
    Ontario Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You should use this:

    Code:
    <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 and these css errors . 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

    Code:
    .important {
         font-style:italic;
         background-color: #CC9999;
         border: 1px solid #CC3399;
    }
    Rather than declaring
    Code:
    .italic {
         font-style:italic;
    }
    .importantbackground{
         background-color: #CC9999;
    }
    .importantborder{
         border: 1px solid #CC3399;
    }
    It makes for more concise code and easier for people to figure out problems
    Channy

    I would love to change the world, but they won't give me the source code...

  • #5
    Regular Coder
    Join Date
    Nov 2003
    Location
    Seattle
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form submission

    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.
    Dreams on the Fly
    http://www.dreamsonthefly.com

  • #6
    New Coder
    Join Date
    Feb 2005
    Location
    Ontario Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Channy

    I would love to change the world, but they won't give me the source code...

  • #7
    Regular Coder
    Join Date
    Nov 2003
    Location
    Seattle
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you

    Oh Channey, your help would be much appreciated. Thank you!
    Dreams on the Fly
    http://www.dreamsonthefly.com

  • #8
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #9
    New Coder
    Join Date
    Feb 2005
    Location
    Ontario Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Here ya go....

    Hi dreamsonthefly,

    First things first, you are missing a ; in your javascript code...
    Code:
    dom=document.getElementById;
    As I said in my original post, you had lots of repetative code, I took the code and stream lined it.

    My Code

    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
    HTMLDog
    Mezzoblue Crib Sheet
    CSS Zen Garden
    WebMonkey
    A list Apart

    Code Validators:

    HTML Validator
    CSS Validator

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

    I would love to change the world, but they won't give me the source code...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •