Results 1 to 4 of 4

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

Hybrid View

  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.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

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

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  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