Jump to content

Need "else if" Statement For PHP Script


Mr. J

Recommended Posts

I have a tell-a-friend PHP script that I'm already using successfully and I want to tweak it so that visitors can optionally send a notice to multiple email addresses.

 

I've named and added several new fields to the form. Can anyone tell me how to update the script to accomodate this?

 

I believe these are the attributes in the script which need configuration.

 

$tomail = $_POST["friend_email"];

//THE ADDITIONAL EMAIL FIELDS ARE NAMED
//friend_2, friend_3, friend_4, friend_5 

//send the email
mail ($tomail, $subject, $inputMessage,$from);

 

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/78419-need-else-if-statement-for-php-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.