Hi All,
This shouldn't be a real big issue for thos in the know. I'm managing a fairly large website that has a number of forms around it that send emails to certain people within the organisation as well as myself.
What I would like to do is have a separate page for all emails that I can include into the main php page that processes the form.
the line of code is pretty simple:
I would like to have this line on a separate page so that if I need to change email addresses, I only need to change it once rather than going through every page that has my email address on it. What I can't seem to figure out is the correct syntax
I've tried:
a. include 'emailaddress.php';
b. $emailTo = + include 'emailaddress.php';
c. include ('emailaddress.php');
I did change the emailaddress.php page to suite the line of code. The files are in the same directory. The form appears to work ok, but I don't get any emails.
The emailaddress.php is:
OR
Any help would be appreciated
Cheers
Dean
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
This shouldn't be a real big issue for thos in the know. I'm managing a fairly large website that has a number of forms around it that send emails to certain people within the organisation as well as myself.
What I would like to do is have a separate page for all emails that I can include into the main php page that processes the form.
the line of code is pretty simple:
Code:
$emailTo = 'email@address.net.au';
I would like to have this line on a separate page so that if I need to change email addresses, I only need to change it once rather than going through every page that has my email address on it. What I can't seem to figure out is the correct syntax
I've tried:
a. include 'emailaddress.php';
b. $emailTo = + include 'emailaddress.php';
c. include ('emailaddress.php');
I did change the emailaddress.php page to suite the line of code. The files are in the same directory. The form appears to work ok, but I don't get any emails.
The emailaddress.php is:
Code:
<?
$emailTo = 'email@address.net.au'
?>
Code:
<?
'email@address.net.au'
?>
Any help would be appreciated
Cheers
Dean
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."