scripter73
Programmer
Hi,
This is a basic question but that's still not stopping me from having trouble.
I have a form (FORMA) that has two buttons. The 1st button redirects to (FORMB) after user clicks it.
The second button redirects to (FORMC) after user click.
So the shell of my code looks like:
<body>
<form action="" name="forma" method="post">
....
<input type="button" name="formb_btn" onclick="window.location.href='formb.cfm'";>
<input type="button" name="formc_btn" onclick="window.location.href='formc.cfm'";>
</form>
</body>
I want to pass my FORM A data to the form that's called using the method="post", but with my current way of nullifying the action="", the form data won't reach my forms.
How do I write the code to say:
- If user clicks on ButtonB, pass all FormA content to FormB
- Else If user clicks on ButtonC, pass all FormA content to FormC?
This is a basic question but that's still not stopping me from having trouble.
I have a form (FORMA) that has two buttons. The 1st button redirects to (FORMB) after user clicks it.
The second button redirects to (FORMC) after user click.
So the shell of my code looks like:
<body>
<form action="" name="forma" method="post">
....
<input type="button" name="formb_btn" onclick="window.location.href='formb.cfm'";>
<input type="button" name="formc_btn" onclick="window.location.href='formc.cfm'";>
</form>
</body>
I want to pass my FORM A data to the form that's called using the method="post", but with my current way of nullifying the action="", the form data won't reach my forms.
How do I write the code to say:
- If user clicks on ButtonB, pass all FormA content to FormB
- Else If user clicks on ButtonC, pass all FormA content to FormC?