Now I have changed the latter part of the code to:
Code: Select all
//
// Auswertung nach Membership Categories und anschliessender redirect
//
// if(isset($credit_card_1) || isset($credit_card_2) || isset($credit_card_3) || isset($credit_card_4)) {
if (($_GET["Membership_Category"] == "National")) {
exit();
}
elseif (($_GET["Membership_Category"] == "Affiliate")) {
exit();
}
elseif (($_GET["Membership_Category"] == "Associated")) {
header('Location: '.$credit_card_1.'?COMPANY='.$var1.'&SALUTATION='.$var2.'&FIRSTNAME='.$var3.'&LASTNAME='.$var4.'&D_STREET1='.$var5.'&D_STREET2='.$var6.'&D_POSTALCODE='.$var7.'&D_CITY='.$var8.'&D_STATE_ID='.$var9.'&D_COUNTRY_ID='.$var10);
}
elseif (($_GET["Membership_Category"] == "Institutional")) {
header('Location: '.$credit_card_2.'?COMPANY='.$var1.'&SALUTATION='.$var2.'&FIRSTNAME='.$var3.'&LASTNAME='.$var4.'&D_STREET1='.$var5.'&D_STREET2='.$var6.'&D_POSTALCODE='.$var7.'&D_CITY='.$var8.'&D_STATE_ID='.$var9.'&D_COUNTRY_ID='.$var10);
}
elseif (($_GET["Membership_Category"] == "Corporate")) {
header('Location: '.$credit_card_3.'?COMPANY='.$var1.'&SALUTATION='.$var2.'&FIRSTNAME='.$var3.'&LASTNAME='.$var4.'&D_STREET1='.$var5.'&D_STREET2='.$var6.'&D_POSTALCODE='.$var7.'&D_CITY='.$var8.'&D_STATE_ID='.$var9.'&D_COUNTRY_ID='.$var10);
}
elseif (($_GET["Membership_Category"] == "Individual")) {
header('Location: '.$credit_card_4.'?COMPANY='.$var1.'&SALUTATION='.$var2.'&FIRSTNAME='.$var3.'&LASTNAME='.$var4.'&D_STREET1='.$var5.'&D_STREET2='.$var6.'&D_POSTALCODE='.$var7.'&D_CITY='.$var8.'&D_STATE_ID='.$var9.'&D_COUNTRY_ID='.$var10);
}
elseif (($_GET["Membership_Category"] == "Student")) {
exit();
}
// }
But that did not help either, since the redirection is not being carried out.
BTW, here is the email form "IH|...":
Code: Select all
SM|Membership_Category|1|Your Membership Category: |60,100|National#Affiliate#Associated#Institutional#Corporate#Individual#Student|300
SM|Salutation|0|Salutation|10,15|Mr.#Ms.#Mrs.|75
IT|First_Name|1|First Name: |60,100||300
IT|Last_Name|1|Last Name: |60,100||300
IT|Title|0|Title: |60,100||300
IR|****|0|****: |10,0|Female%1%Female#Male%1%Male|0
IT|Position_Function|0|Position / Function: |60,100||300
IT|Company_Organization|0|Company / Organization: |60,100||300
IT|Department|0|Department: |60,100||300
IT|Address_1|0|Address (Part 1): |60,100||300
IT|Address_2|0|Address (Part 2): |60,100||300
IT|City|0|City: |60,100||300
IT|ZipCode|0|Postal Code / ZIP: |12,15||300
IT|State|0|State (if applicable): |60,100||300
SC|Country|0|Country: |60,100||300
IT|Phone_Office|0|Phone (Office): |20,30||300
IT|Fax|0|Fax: |20,30||300
IT|Phone_Private|0|Phone (Private): |20,30||300
IT|Mobile_Phone|0|Mobile Phone: |20,30||300
IT|email|0|email: |60,100||300
IT|Website|0|Website: |60,100|http://|300
TA|Telemedical_Activities|0|Telemedical Activities: |20,6||300
TA|Special_Interests|0|Special Interests: |20,6||300
TA|Help_Through_ISfT|0|Help Through ISfT: |20,6||300
IH|language|0||10,100|EN|0
IH|credit_card_1|0||10,100|https://secure.element5.com/esales/checkout.html?PRODUCT[xxxxxx]=1&DELIVERY[xxxxxx]=EML&languageid=1&stylefrom=xxxxxx&nolselection=1&noquickbuy=1¤cies=USD|0
IH|credit_card_2|0||10,100|https://secure.element5.com/esales/checkout.html?PRODUCT[xxxxxx]=1&DELIVERY[xxxxxx]=EML&languageid=1&stylefrom=xxxxxx&nolselection=1&noquickbuy=1¤cies=USD|0
IH|credit_card_3|0||10,100|https://secure.element5.com/esales/checkout.html?PRODUCT[xxxxxx]=1&DELIVERY[xxxxxx]=EML&languageid=1&stylefrom=xxxxxx&nolselection=1&noquickbuy=1¤cies=USD|0
IH|credit_card_4|0||10,100|https://secure.element5.com/esales/checkout.html?PRODUCT[xxxxxx]=1&DELIVERY[xxxxxx]=EML&languageid=1&stylefrom=xxxxxx&nolselection=1&noquickbuy=1¤cies=USD|0
IH|redirect_error|0||10,100|http://www.isft.net/cms/index.php?membership_online|0
IH|send_copy|0||10,100|1|0
IH|email|0||10,100|treasurer@isft.net|0
Al lot of code samples, but I want to make things clearer than I might be able to verbalize.
Sincerely
Markus