68 users online (0 members and 68 guests)  


  Results 1 to 3 of 3

Related

  1. Please Help Me - CGI Mail Form    Forum: CGI Perl Forum
    Replies: 1
  2. Help, form mail    Forum: PHP Forum
    Replies: 0
  3. PHP Form Mail Problem    Forum: PHP Forum
    Replies: 30
  4. mail form birthdate    Forum: PHP Forum
    Replies: 1
  5. E-mail to a friend Form    Forum: HTML Forum
    Replies: 5
  1. #1
    Mickster's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2003
    Location
    Upstate, NY
    Posts
    2

    E Mail Form (with only Java and html)

    I have the page all set up using a lot of help from those around me and various sources on line, but now I am needing to make it so the forms are REQUIRED. So that some one who attempts to submit the form (via email) is hit with a prompt that tells them they need to complete the remainder before proceeding.

    I have to accomplish this with only Java, or HTML. I have been pulling my hair out trying to make this happen, and was wondering if anyone with a greater skill set than I would be able to lend me a hand?

    Thanks much

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi. Welcome to the forums.

    Heres a simple example of validating -

    Code:
    <script language="JavaScript">
    function validate(obj) {
    if (obj.email.value=='') {
    alert('You missed out your email address');
    return false;
    }
    return true;
    }
    </script>
    
    <form method="post" onsubmit="return validate(this)">
    <input type="text" name="email"> <input type="submit">
    </form>
    Obviously, you will need to change the details to suit you.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Mickster's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2003
    Location
    Upstate, NY
    Posts
    2
    Wow that was a speedy response, thanks a lot for the help. Hopefully I will figure out how to implement this change. I am just begining down the road, but what a blast it has been thus far.

    Thanks again I am off to see if I can do this without messing up the form



Tags for this Thread