Hi!
I have this code that only submit to checklogin.php
I've tried interchanging the destinations for the submit and i always end up having the data only at the last argument.
Please help me.
I have this code that only submit to checklogin.php
I've tried interchanging the destinations for the submit and i always end up having the data only at the last argument.
Please help me.
Code:
<script language="javascript"> function submitme() { document.Form1.action = "init_profile.php"; //first destination document.Form1.submit(); document.Form1.action = "getmempicture.php" //second destination document.Form1.submit(); document.Form1.action = "init_profile.php" //third destination document.Form1.submit(); document.Form1.action = "checklogin.php"; //forth destination document.Form1.submit(); return true; } </script> <form name="Form1" method="post" action="checklogin.php" onSubmit="return submitme()"> <b>Log In Account</b><br /><br /> Username: <input type="text" id="myusername" /><br /> Password: <input type="password" id="mypassword" /><br /><br /> <input type=reset value="Clear" /> <input type="submit" name="Button1" value="Login" /> </form>
Comment