G'day there,
I am using a php page with multiple breaks.
At the end of one break/page which is a form when going to the next break(submitted page) an email is sent with the details.
I have a field with multiple entries allowed.
I tried using an example I saw in here before but it didn't work.
I will paste below the relevant parts of the breaks.
Can someone pleeease help.
Regards
Crooksey
<td class="td-content-label-right-75"><br/>
<select multiple size="5" name="new_group_category[]">
<option value="Disco">Disco, dance, night club, ball</option>
<option value="Exi">Exhibition, display, show </option>
<option value="Fest">Festival, circus, street theatre, carnival </option>
<option value="Music">Music</option>
<option value="Test">Test</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" class="td-content"><br/><br/>
</td>
</tr>
<tr>
<td colspan="2" class="navigation-100"><br/>
<input type="hidden" name="caller_name" value="<?= $form['caller_name'] ?>">
<input type="hidden" name="old_group_name" value="<?= $form['old_group_name'] ?>">
<input type="hidden" name="group_marketing_name" value="<?= $form['group_marketing_name'] ?>">
<input type="hidden" name="caller_email" value="<?= $form['caller_email'] ?>">
<input type="hidden" name="old_group_number" value="<?= $form['old_group_number'] ?>">
<input type="hidden" name="morning" value="<?= $form['morning'] ?>">
<input type="hidden" name="new_group_name" value="<?= $form['new_group_name'] ?>">
<input type="hidden" name="new_group_description" value="<?= $form['new_group_description'] ?>">
<input type="hidden" name="step" value="28"/>
<input type="submit" value="Continue >>"/>
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
<?php
break;
case 28:
$feedback_subj = FEEDBACK_SUBJ;
$message .= "Category 1\n\n";
$i=0;
while($output = $new_group_category[$i])
$feedback_body = <<<END
The following details have been sent to you by our marketing caller {$form['caller_name']}
{
$message .= $output."\n";
$i++;
}
Group Called : {$form['old_group_name']}
Group Contact Person in charge of marketing : {$form['group_marketing_name']}
Phone number called : {$form['old_group_number']}
Group name to be registerd : {$form['new_group_name']}
Group Description to be registered : { form['new_group_description']}
THIS GROUP WISHES TO BE REGISTERED ON COMMUNITIES ONLINE
END;
mail(FEEDBACK_TO, $feedback_subj, $feedback_body,"From: {$form['caller_email']}\r\n","Reply-To: {$form['caller_email']}\r\n");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CO Marketing Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<meta http-equiv="Content-Language" content="en-us"/>
<style type="text/css" media="screen">@import "../styles/CO.css";</style>
</head>
<body>
<div class="page">
<p align="center"><img src="images/headerlogo.gif" width="506" height="84"/> </p>
<div class="page-content">
<form action="<?= $PHP_SELF ?>" method="post">
<table width="100%" border="0" cellspacing="0">
<tr>
<td colspan="2" class="page-title-h2">
<h2>Submitted</h2>
</td>
</tr>