Qulor
12-11-2007, 10:43 PM
Hey
On my website i got a registration form. Works very well with action="..."
But there's one problem. I need to add a second action within the same form!
One will be the registration so action="register.php"
and they other needs to send the data to a second online database
I came up with something like:
javascript:
function submitForm()
{
var myForm = document.myForm;
window.???(????);
}
</script>
<form name="Registration" action="register.php">
<input type="text" name="username" /><br />
<input type="password" name="password" /><br />
<input type="button" value="Submit" onClick="submitForm();" />
</form>
I don't know what to put on the ???
On my website i got a registration form. Works very well with action="..."
But there's one problem. I need to add a second action within the same form!
One will be the registration so action="register.php"
and they other needs to send the data to a second online database
I came up with something like:
javascript:
function submitForm()
{
var myForm = document.myForm;
window.???(????);
}
</script>
<form name="Registration" action="register.php">
<input type="text" name="username" /><br />
<input type="password" name="password" /><br />
<input type="button" value="Submit" onClick="submitForm();" />
</form>
I don't know what to put on the ???