Hi All,
I am struggling with a php form, I want to be able to get email addresses from a text file that I can edit separately and the PHP keeps failing, I have tried all sort of things to fix it but nothing seems to be working.
if ($type == "find careers") $emailaddress ="[email protected], include(edit/owner/career.txt)";
elseif ($type == "find job") $emailaddress ="[email protected], include(edit/owner/job.txt)";
elseif ($type == "training") $emailaddress ="[email protected], include(edit/owner/training.txt)";
elseif ($type == "general") $emailaddress ="[email protected], include(edit/owner/general.txt)";
else {exit;}
the first address "[email protected]" is a default address that should always be there and the script should pull other addresses from a text file which can be edited. but its not working,
I have tried several different ways of doing this such as get_file but the script throws back a 500 error. some times it sends and email, but still throw back a 500 error, other time it sends to [email protected] with a second address on the email of edit/owner/find.txt but not the address in the test file.
its 4am and I am too tired to figure it out right now, could somebody point me in the right direction. I am sure it is simple but I am not seeing it right now.....
Thanks in advance
I am struggling with a php form, I want to be able to get email addresses from a text file that I can edit separately and the PHP keeps failing, I have tried all sort of things to fix it but nothing seems to be working.
if ($type == "find careers") $emailaddress ="[email protected], include(edit/owner/career.txt)";
elseif ($type == "find job") $emailaddress ="[email protected], include(edit/owner/job.txt)";
elseif ($type == "training") $emailaddress ="[email protected], include(edit/owner/training.txt)";
elseif ($type == "general") $emailaddress ="[email protected], include(edit/owner/general.txt)";
else {exit;}
the first address "[email protected]" is a default address that should always be there and the script should pull other addresses from a text file which can be edited. but its not working,
I have tried several different ways of doing this such as get_file but the script throws back a 500 error. some times it sends and email, but still throw back a 500 error, other time it sends to [email protected] with a second address on the email of edit/owner/find.txt but not the address in the test file.
its 4am and I am too tired to figure it out right now, could somebody point me in the right direction. I am sure it is simple but I am not seeing it right now.....
Thanks in advance