php - How to redirect based on url paramater -



php - How to redirect based on url paramater -

i have form on website users can specify if they'd monthly or annual subscription (it's radio option). form gets sumbitted crm system, redirects user www.site.com/is_to_pp.php?payment=monthly&address1=blah (and other url variables).

depending on whether ?payment=monthly or ?payment=annual want redirect them different paypal subscription page. want pass other variables paypal prepopulate address fields.

i.e. user fills out 1 form on our site, specifying how they'd pay, added our crm system, , redirected appropriate paypal page.

does have thought of how construction is_to_pp.php file handle this?

any help/guidance appreciated

thanks

charlie

do mean this:

<?php if ($_get["payment"] == "monthly") { header( 'location: http://www.pageyouwant.com' ); header("location: paypalpage.com?payment=".$_get['payment']."&address=".$_get['address']); } else { header("location: paypalpage.com?payment=".$_get['payment']."&address=".$_get['address']); } ?>

php forms redirect get

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -