sacx13
Mar 30th 2006, 4:45 am
I successfuly write a little javascript code to disable my submit button when is pressed, but I have a issue ... when the button is disabled I cannot get the value sendit by this button. Any suggestions ?
<form action="xxx.php" method="POST" enctype="multipart/form-data" name="form1">
<input type="text" size="64" name="yyy" ><br>
<input type="submit" name="action" value="submit" onclick="return disableInput(this);">
Java script is
function disableInput(input)
{
input.disabled=true;
}
<form action="xxx.php" method="POST" enctype="multipart/form-data" name="form1">
<input type="text" size="64" name="yyy" ><br>
<input type="submit" name="action" value="submit" onclick="return disableInput(this);">
Java script is
function disableInput(input)
{
input.disabled=true;
}