hunter13605
Technical User
i have a 3 case if else system that decides on which user type a person is. The only thing that i could find to automatically submit the form is...
i don't like doing it this way because it shows the username and password in the address bar. Is thes another way to automatically submit a form without displaying the information in the address bar? Possibly an OnLoad script.
Code:
if ($match == 3)
{
print "<FORM ACTION=admin.pl METHOD='AutoPOST' NAME='sendtoadmin'>";
print "<INPUT TYPE='hidden' NAME='pin' VALUE=$pin>";
print "<INPUT TYPE='hidden' NAME='password' VALUE=$password>";
print "</FORM>";
print "<SCRIPT LANGUAGE='JavaScript'>
document.sendtoadmin.submit();
</SCRIPT>";
}
i don't like doing it this way because it shows the username and password in the address bar. Is thes another way to automatically submit a form without displaying the information in the address bar? Possibly an OnLoad script.