Results 1 to 4 of 4

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

  1. #1
    Join Date
    Mar 2008

    how to make form fields inactive/disabled after submitting


    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
    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

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

  3. #3
    Join Date
    Sep 2009
    try ajax submission

  4. #4
    Join Date
    Mar 2008
    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