How to disable submit button w/o JS?

B

Brett

How do I disable a form submit button without using Javascript, Flash or
similar technologies? I'd like to allow only one click on the submit
button. This sends a page to the server. Once a result is returned, the
submit button is enabled.

Thanks,
Brett
 
D

Dylan Parry

As an authority on the subject, Brett proclaimed:
How do I disable a form submit button without using Javascript, Flash or
similar technologies?

Without using *any* form of scripting, you can't. HTML is not a scripting
language, and is incapable of doing anything dynamically - such as what
you want.
 
B

brucie

In alt.html Brett said:
How do I disable a form submit button without using Javascript, Flash or
similar technologies? I'd like to allow only one click on the submit
button. This sends a page to the server. Once a result is returned, the
submit button is enabled.

you're thinking about it the wrong way. design so it doesn't matter how
many times the submit button is pressed, only accept one press.
 
J

Jeffrey Silverman

How do I disable a form submit button without using Javascript, Flash or
similar technologies? I'd like to allow only one click on the submit
button. This sends a page to the server. Once a result is returned, the
submit button is enabled.

Thanks,
Brett

If there is a server response involved, you could use some sort of
server-side scripting to send back a page with an enabled or disabled
button, as appropriate. The disabled button could be just an image of a
button. And the enabled button would be the real button, of course. But
the enabled button is only included in the page if the server gets the
appropriate signal.

But, of course, a scripting language would have to be involved.
Server-side, in this case.

HTML alone can't make any decisions based on input.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top