Jump to content

[SOLVED] PHP Form Help


NathanS

Recommended Posts

Hi guys,

 

I've created a web based form which emails the results. However, I've now got a multiple select form, and I'm trying to make the email echo the output of that (ie, however many have been selected)

 

$msg .= "<b>Modified Yes Details</b>: "foreach($_POST['MODIFIEDYES'] as $name) { echo $name; }" "\n";

 

however, PHP returns "unexpected T_FOREACH". Any way I can achieve this?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/82306-solved-php-form-help/
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.