Results 1 to 3 of 3
  1. #1

    How do I make the sender input field required in a form

    How do I make the sender input field required in a form without having it reply as [email protected]. I have one part working which is to receive the form with the email address of the sender, but now I want this same filed to be a required field.

    Here is the line code I am using.

    <td align=right bgcolor="#e72264" width="60%" class="inputcontent2"> *Email Address</td><td width="4%"></td>

    <td align="left"><input name='email' type=text size=20 maxlength=100></td>

    Apprecaite any help!

  2. #2
    Join Date
    Aug 2005
    Location
    Barcelona, Spain
    Posts
    3,397
    Check with JavaScript if the form input has been filled in:

    http://www.w3schools.com/js/js_form_validation.asp
    hi there!

  3. #3
    Join Date
    Dec 2001
    Location
    Arizona
    Posts
    550
    What language are you using to send the form? I ask because you should already be using some sort of validation to prevent spam, injection attacks, etc. Simple make sure the sender field is validated properly with your language and you are set.

Posting Permissions

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