I have been using this script for several months now with no issues. I am trying to switch servers and the code is simply not working on the new one.
The code generates a form, which uses a function to decide who to send the form to, based on a variable passed from the address. I used a case switch function rather than nested if’s, and it passes the result to 3 places in the form.
This function will not work on the new space … nothing gets passed to the form, and therefore the form can’t tell the mail script who to send the email to. This is a major part of the automation of my site, and I am just lost trying to figure it out
I have been told that the PHP version is very up-to-date on the new server, and it’s obviously enabled since the form does get displayed. It’s just the function that seems to be having issues. Any suggestions or insights would be helpful … note tho that this exact code works fine elsewhere
case 1: $subject = ‘Guild Master and the Assistant GMs’;
case 2: $subject = 'Senior Officers'; break; case 3: $subject = 'Officers'; break; case 4: $subject = 'Valor Guard'; break; case 5: $subject = 'Admissions Team'; break; case 6: $subject = 'Webmaster'; break; } return $subject;