submit form onload?

ok this is the form i have and im trying to submit it as soon as the page loads



">
">


i found this submit onload script but it doesn't want to work at all

regardless of how i have anythng set up...


<script type="text/javascipt">


Note: Change the TheForm to the ID of the form element.

i took out all the extra stuff in the form because the submit onload didn't work..

the form is set up as it was originally

anyone know whats wrong?

#265503



">
">


#265541

still can't get it to work...

#265547

Should work, worked for me atleast

btw you can't name something submit and use submit(); it conflicts

<html>

<head><title>Redirct Form</title>

<script>

<!--

function SubMe(){document.getElementById("redirect").submit();}

// -->

</script>

</head>

<body onLoad=SubMe()>

<form action="fighting.php" id="redirect" method="post" enctype="multipart/form-data" name="redir" target="_top">

<input name="page" type="hidden" value="<? echo $page; ?>">

<input name="page2" type="hidden" value="<? echo $page2; ?>">

<input name="submit1" type="submit" value="click here if not redirected">

</form>

</body>

</html>

#265585

ya actually i just noticed that hehe..

soo its working as it should now.. thanks!

#265589

*smacks self on forehead* Did not notice the name conflict. Oops. :D

#265602