Author Topic: Reaction To Certain Field  (Read 4059 times)

cwboaze

  • Posts: 37
    • View Profile
Reaction To Certain Field
« on: December 05, 2007, 07:08:50 pm »
Hi Dean,

My question is simple but hopefully doable!, do you know.

I need the redirect to a certain website if data in user7 field when someone signs up to my mailing list through signup.php like normal method.

If the data in user7 is "Blah" it will redirect to yahoo.com, if they do not input data into user7 it will redirect liken normal letting them know to check their email for the welcome message.

is this posisble!, and how.

Thanks,
CB

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Reaction To Certain Field
« Reply #1 on: December 05, 2007, 07:44:46 pm »
CB,

Check out the ListMail /xtra folder for the signup-xtra.php file.  This file could contain something like this:

Code: [Select]
if($list=='1'){
 // TODO: somehow check if its a signup form or other custom signup.php call, perhaps with a hidden non-LMP variable? ie: "$mycheck"
 if($user7=='myvalue'){
  $url = "http://example.com/thanks2.html";
  header("Location: $url");
 }
}

If I'm not mistaken the signup-xtra.php file is loaded before the final custom HTML so this method should work.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

cwboaze

  • Posts: 37
    • View Profile
Reaction To Certain Field
« Reply #2 on: December 05, 2007, 10:08:02 pm »
Hi Dean,

Thanks a billion man!, works like a charm!