Thread: disabling
Results 1 to 5 of 5
Related
-
disabling and then enabling a button Forum: PHP Forum
Replies: 3 -
Disabling Image Dragging Forum: HTML Forum
Replies: 1 -
Disabling right click for medai player plug in Forum: HTML Forum
Replies: 4
-
02-10-2004, 10:20 AM #1
disabling
hi, i new to these forums so i hope i'm in the right place
i am wanting to know how to disable a button once it has been click, now i have the perfect script for the task however once the button is clicked and disabled, the form isn't submitted!!
heres the code
PHP Code:<?
// ISBN CHECKING SCRIPT
if (isset($_POST['submit'])) {
// PROCESS NUMBER
}
else {
// SHOW FORM
print '<form name="isbn" method="POST" action="'.$PHP_SELF.'">';
print 'ISBN : <input type="text" name="isbnnum" maxlength="10"><br><br>';
print '<input type="submit" name="submit" value="Check ISBN" onClick="document.isbn.submit.disabled = true"></form>';
}
?>
thanks, Comms
-
02-10-2004, 02:23 PM #2
Hi,
Do you mean the PHP does not detect that the form has been disabled (not surprising, as the input is disabled) or do you mean the form does not post itself at all in the first place? if the latter, try amending to
Code:document.isbn.submit.disabled = true;this.form.submit()
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
02-10-2004, 06:20 PM #3
when i use that and i click the button an error is generated (error appears in the status bar)
when i view the error it says "object doesnt support this property or method"
any suggestions?
thanks, Comms
-
02-10-2004, 06:29 PM #4
my fault for not testing it with your code.
Do you mean the PHP does not detect that the form has been disabled (not surprising, as the input is disabled) or do you mean the form does not post itself at all in the first place?If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
02-11-2004, 05:19 AM #5
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum