If you have access to the script page, why not just hard-code it into the form?
<form action="http://www.mysite.com:8443/submit.php" ...
or is this a page for multiple sites? In that case you could do something like this:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Untitled Page</title>
<script type="text/javascript"><!--
function submitForm() {
this.action = "http://" + this.theSite.value + ":8443/" + this.action;
}
window.onload = function() {
document.FormName.onsubmit = submitForm;
}
//-->
</script>
</head>
<body bgcolor="#ffffff">
<form id="FormName" action="submit.php" method="get" name="FormName">
Website URL: <input type="text" name="theSite" value="www.mysite.com" size="24">
<p>Username: <input type="text" name="u" size="24"></p>
<p>Password: <input type="password" name="p" size="24"></p>
<p><input type="submit" name="submitButtonName"></p>
</form>
<p></p>
</body>
</html>
__________________
Will Work For Talkputation...
Last edited by funkdaddu : 09-11-2006 at 12:19 PM.
|