December 14th, 2004, 02:07 AM
I have a page I'm working on that has two forms on it. The purpose of this page is to ask wether the user wants a domain name or subdomain name and, if he wants a domain name, give him the option to check it. The problem is that the domain name checker form ends up in the middle of the main form and I can't get the submit button to work on the main form. I'll try to explain it below:
How can I make both forms work. I don't need any values from the "check_url" form because I'm saving those as php variables. I just need the variables above the "check_url" form and the variables below the form to get submitted with the submit botton at the bottom.
<form name="main_form" action="next_step.php">
<input ...> -- what type of site access he wants (domain or sub)
<form name="check_url" action="check_url.php">
<input ...> what the domain name is
<!--continue main form-->
<input...> -- if he wants a transfer. He types it here.
December 14th, 2004, 05:05 AM
I don't think you're allowed nested forms, have a look at this thread
December 14th, 2004, 04:36 PM
This is the function call:
And this is the function definition:
function checkDomain(domain , type)
document.location='domain_tester.php?domain=' + domain + '&type=' + type