I know this might be a bit tough to understand, but i am dying after 2 stupid weeks of trying to code this ONE STINKING LITTLE PIECE OF CODE. :p
My objective is to display a registration form. Once the user fills it in and selects one of 3 radio buttons at the end [Paypal, Check, Mail in payment], i want to write some code to plug into the value spot for my form so it redirects after is submits the form in an email.
<form name=”form2″ id=”form2″ method=”post” action=”formmail.php”>
<input type=”hidden” name=”recipient” value=”
<input type=”hidden” name=”subject” value=”<?= $HTTP_POST_VARS[“courseid”].” – “.$HTTP_POST_VARS[“coursename”]; ?>”>
<input type=”hidden” name=”gmt_offset” value=”4″>
<input type=”hidden” id=”redirect” name=”redirect” value=”” />
<input type=”hidden” name=”coursename” value=”<?= $HTTP_POST_VARS[“coursename”]; ?>” />
<input type=”hidden” name=”courseid” value=”<?= $HTTP_POST_VARS[“courseid”]; ?>” />
<input type=”radio” name=”payment_type” value=”paypal” />Paypal<br />
<input type=”radio” name=”payment_type” value=”check” />Check<br />
<input type=”radio” name=”payment_type” value=”mail” />Mail in payment
</form>
There is still some basic form material missing, but plays no real part into any of this. My problem is if i put a strickt static value into the redirect hidden input box it goes there after the form is submitted.
— I NEED it to go to a specific location depending on what they select on the radio button. For example if they select the paypal button then i need the redirect value to equal “
i have been trying javascript and PHP to get it to do this … i have even created another static php webpage that would try to redirect based on $_post[] posted variable from the payment type but i could not get it to read anything if the: Header( ‘Location:
PLEASE can someone give me a hand.
After 2 weeks i am starting to look at this code as if it is getting mail — repetitious.