| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
I own you!
Excelling Contributor
Joined in Apr 2004
563 posts
Gave thanks: 0
Thanked 3 times
|
Disabling form button upon submission
Well I want to disable the form button once a user submits the form.
So basically I have this Code:
<input name="gfdfg" type="button" class="button" value="gfd"> Code:
<input name="submit" type="button" disabled="true" class="button" value="Submit"> Thanks |
|
|
|
|
|
#2 (permalink) |
|
Hostering?
Excelling Contributor
Joined in Jan 2004
Lives in New York
Hosted on D41
970 posts
Gave thanks: 0
Thanked 0 times
|
__________________
*-[www.oolio.com]-* {_DIME.41 Reseller_} Stay cool. ![]() >> Avatar used with permission from garyzullo.com <<
|
|
|
|
|
|
#3 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
AJ -
what you want is javascript. Alternately you can take the user to a "thank you" page as the form action, and in that "thankyou page" - it's all php - process his data.
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#4 (permalink) |
|
Peaches!
Excelling Contributor
Joined in Jul 2003
Lives in Ottawa, Ontario, Canada
Hosted on Jose, Pass19
564 posts
Gave thanks: 0
Thanked 0 times
|
Here's the way I do it. In your <form> tag, put this at the end:
onsubmit="this.nameofyoursubmitbutton.disabled=tru e;" |
|
|
|