freecrm
New Member
- Messages
- 629
- Reaction score
- 0
- Points
- 0
I'm very puzzled.
I created a page at work to do mass mailshots... that works.
On X10, for my own site, a version of the same page doesn't work..:nuts:
I attach the full page code, but in principle, it does this.
Pre-Loads recordset (e-mails) based on $_POST values from same page.
Creates do{ repeating table for results in same page. (Within a form)
each row includes
then a "Send e-mails" button
if (isset($_POST['send'])) then do this....
Then if $edit_id returns a value, create another recordset, finding a line that corresponds to the $edit_id (Table ID) to find the e-mail and then go through a php mail function.
Savvy?
My major sticking point is this bit
$checkbox[$i];
which doesn't return any values!!!!
I've checked the code when it parses and it does seem to be pulling in the record id in the checkbox field value..
Am I missing something simple here?
I created a page at work to do mass mailshots... that works.
On X10, for my own site, a version of the same page doesn't work..:nuts:
I attach the full page code, but in principle, it does this.
Pre-Loads recordset (e-mails) based on $_POST values from same page.
Creates do{ repeating table for results in same page. (Within a form)
each row includes
PHP:
<input name="checkbox[]" type="checkbox" id="checkbox[]" value="<?php echo $row_recordlookup['CONTID']; ?>" />
then a "Send e-mails" button
if (isset($_POST['send'])) then do this....
PHP:
for($i=0;$i<$_POST['totalrowstosend'];$i++)
$edit_id = $checkbox[$i];
Then if $edit_id returns a value, create another recordset, finding a line that corresponds to the $edit_id (Table ID) to find the e-mail and then go through a php mail function.
Savvy?
My major sticking point is this bit
$checkbox[$i];
which doesn't return any values!!!!
I've checked the code when it parses and it does seem to be pulling in the record id in the checkbox field value..
Am I missing something simple here?