View Single Post
Old 07-06-2006, 03:16 AM   #3 (permalink)
helloworld
Contributing Member
 
helloworld's Avatar
 
Join Date: 06-29-06
Posts: 70
iTrader: 0 / 0%
Latest Blog:
None

helloworld is liked by somebodyhelloworld is liked by somebodyhelloworld is liked by somebodyhelloworld is liked by somebodyhelloworld is liked by somebody
The best solution is to place the forms on a seperate page from the scripts.

Alot of scripts use: action=\"$PHP_SELF\", or for html: action="<?PHP_SELF?>"

Instead it's wise to use: action=\"location-to-scipt\" or
for html: action="location-to-scipt"


----------------------------------------------------------------------------------------
could use java



<script language:"javaScript">
function hideMybutton(){
var myForm = document.formName;
myForm.mySubmitbutton.style.visibility="hidden";
alert("The Form has been sent please wait");
}
</script>

add this: onClick="hideMybutton();" name="mySubmitbutton" to your button


ie:
<input type="button" value=" submit " onClick="hideMybutton();" name="mySubmitbutton">

Last edited by helloworld; 07-06-2006 at 03:34 AM..
helloworld is offline   Reply With Quote