www.webdeveloper.com
Results 1 to 4 of 4

Thread: how to make form fields inactive/disabled after submitting

  1. #1
    Join Date
    Mar 2008
    Posts
    57

    how to make form fields inactive/disabled after submitting

    Hello!

    I wonder how I can make the fields of my form inactive/disabled for as many seconds as it will take after I submit the form and it goes to another page? In other words I don't want users to be able to change anything in the fields after they submit the form.

    Thanks in advance...

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,144
    You can use an onsubmit event in the form tag, calling a JavaScript function which will disable any form elements you want to affect. Since PHP is running on the server, not the browser, it will not normally be able to help you in this respect.
    "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

  3. #3
    Join Date
    Sep 2009
    Posts
    93
    try ajax submission

  4. #4
    Join Date
    Mar 2008
    Posts
    57
    Thank you for answers..

Thread Information

Users Browsing this Thread

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

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
  •  
HTML5 Development Center



Recent Articles