www.webdeveloper.com
Results 1 to 2 of 2

Thread: Bootstrap form validation POST textbox values

  1. #1
    Join Date
    Jun 2013
    Posts
    2

    Bootstrap form validation POST textbox values

    I'm using the following script: http://jsfiddle.net/VzVy6/8/

    It give a alert message that slide in/out when a required field is still empty on submit.
    The script works fine, and in this example its only one field.

    When the field is empty I see the fade in alert message, and when the field has been filled in I see a normal popup alert message: alert("Would be submitting form");

    I can't get it to work to change this alert message to a page POST submit. I was looking online, and I see Ajax examples that I don't get to work.

    What I want is that when all fields are filled in, that the form POST submit to another page including the values in the textboxes ofcourse.

    Maybe its something really easy, but I have already a headache because tried to get it to work for more then 5 hours in a row.

    Thank you for your time.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,408
    Have you tried deleting (or just commenting out) all those lines with the "// Not needed, just for demonstration" comments? (None of which has anything to do with PHP, by the way.)

    PS: Don't forget you still have to do any necessary validation on the server side, as JavaScript validation will do absolutely nothing to stop malicious hackers (or even just valid users with JavaScript disabled).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles