variable from variable question
Posted: Fri Feb 04, 2005 11:22 am
I have a form that people can select an person to send a message to. The form field is the persons name.
In my php I want to have the persons address selected based on their name. So, if bob is selected the email goes to bob@bobsdomain.com and so forth. Right now the email will send to the first selection but not to the rest. Any ideas?
In my php I want to have the persons address selected based on their name. So, if bob is selected the email goes to bob@bobsdomain.com and so forth. Right now the email will send to the first selection but not to the rest. Any ideas?
Code: Select all
if ($RvpName == 'bob') {
$Recipient == 'bob@bobsdomain.com';
} elseif ($RvpName == 'fred') {
$Recipient == 'fred@someotherdomain.com';
}