Anybody know of a way to have one form, based up some user input, call another form?
I have a form with two radio buttons. I want to be able to call one of two other forms, based upon the user's selection.
I have tried setting up the first form as:
<FORM METHOD="post" ACTION = "<? echo $next_form; ?>">
Then, based upon which radio button is selected, I set $next_form to the appropriate form. But I can't get $next_form to take on any value, no matter what the user does, until he hits the "submit" button. Then it's too late.
I've thought of using redirection on an intermediate form, e.g.,
Header("Location: $next_form");
But the intermediate form the header constuct is on can't do anything before the header call, so I can't pass this form anything.
Seems like this should be simple, but it's not.