Jump to content

need help with form


dezkit

Recommended Posts

Is it possible so that when somebody presses "Upload", the "Upload" button disapears and then instead of "Upload" it shows a text saying "Loading..."

 

Thanks

 

<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="upload_ac.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td><strong>Single File Upload </strong></td>
</tr>
<tr>
<td>Select file
<input name="ufile" type="file" id="ufile" size="50" /></td>
</tr>
<tr>
<td align="center"><input type="submit" name="Submit" value="Upload" /></td>
</tr>
</table>
</td>
</form>
</tr>
</table>

Link to comment
https://forums.phpfreaks.com/topic/126106-need-help-with-form/
Share on other sites

i found this

<script>
function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=true
}
}
}
</script>

 

But can anybody tell me how to change the text of the button, not just to disable it?

Link to comment
https://forums.phpfreaks.com/topic/126106-need-help-with-form/#findComment-652086
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.