+ Reply to Thread
Results 1 to 3 of 3

Thread: NMS Formmail

  1. #1
    Mole is offline Frontpage User Mole will become famous soon enough
    Join Date
    Nov 2009
    Location
    Galway
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default NMS Formmail

    I am using NMS FormMail to submit a form on a site I am working on. I have set initial values in each field of the form and also have set hidden values so each field is required before the form is submitted. However, If the user clicks on the submit button with the form untouched it will send, but if each field is cleared it adheres to the required field 'Hidden' value.

    Is there any way of preventing the form being submitted until the initial value has been edited in both fields? Thanks.

    This is the Form code:
    Code:
        <form class="feedback" name="feedback" method="post" action="cgi-bin/feedback.pl">
          <input type="image" src="images/form-header.png" />
          <textarea name="doing" cols="" class="doing">Tell us about your experience...</textarea>
          <textarea name="email" cols="" class="email">Enter your email address</textarea>
          <input type="image" src="images/form-bottom.png" />
          <input name="submit" type="submit" class="submit" value="SUBMIT"/>
          <input type="hidden" name="required" value="doing"/>
          <input type="hidden" name="required" value="email"/>
          <input type="hidden" name="recipient" value="email address here">
          <input type="hidden" name="subject" value="Title here" />
          <input type="hidden" name="redirect" value="http://www.site.com/thanks.html" />
        </form>
    

  2. #2
    Mole is offline Frontpage User Mole will become famous soon enough
    Join Date
    Nov 2009
    Location
    Galway
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anybody? Please...

  3. #3
    pablo_d is offline Frontpage User pablo_d will become famous soon enough
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    your form looks fine,
    These might not do much but try changing too small things.

    Put your "required" fields into the one line of code
    and change the line sequence

    try this and see if this helps:
    Code:
       <form class="feedback" name="feedback" method="post" action="cgi-bin/feedback.pl">
          <input type="image" src="images/form-header.png" />
          <textarea name="doing" cols="" class="doing">Tell us about your experience...</textarea>
          <textarea name="email" cols="" class="email">Enter your email address</textarea>
          <input type="image" src="images/form-bottom.png" />
          <input name="submit" type="submit" class="submit" value="SUBMIT"/>
          <input type="hidden" name="required" value="doing,email"/>
          <input type="hidden" name="redirect" value="thank you page"/>
          <input type="hidden" name="recipient" value="email address here">
          <input type="hidden" name="subject" value="Title here" />
        </form>
    

+ Reply to Thread

Similar Threads

  1. Formmail - Required fields problem
    By Mole in forum Coding Help
    Replies: 3
    Last Post: 25-01-2010, 04:37 PM
  2. Need a good formmail script
    By 404 username not found in forum Coding Help
    Replies: 9
    Last Post: 26-03-2007, 11:06 PM

Visitors found this page by searching for:

No visitors have come to this page from a search engine, yet!

Tags for this Thread

Posting Permissions

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

Search Engine Optimization by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53