| | |
|
|
|
skipping over blank text boxes in formmail..... |
| message from msa on 19 Jul 2004 |
can you program the email sent from a form to disregard elements that are
blank (both the title and the form element)?
<tr>
<td > </td>
<td class="item" >AtriCure - With AtriCure, Transmurality is
proven...100% (4 pages): </td>
<td class="number"><?php echo
((isset($_POST["brochAC4"]))?$_POST["brochAC4"]:"")?></td>
</tr>
<tr>
<td> </td>
<td class="item">AtriCure - Isolator Long (1 page): </td>
<td class="number"><?php echo
((isset($_POST["brochAC1"]))?$_POST["brochAC1"]:"")?></td>
</tr>
<tr>
<td> </td>
<td class="item">AtriCure Spec Sheet - Isolator and Isolator Long:
</td>
<td class="number"><?php echo
((isset($_POST["brochACSpec"]))?$_POST["brochACSpec"]:"")></td>
</tr>
I would want the entire <tr> not to show if the text box input is blank.
Is this possible?
Thanks!!
ps. i sent this in twice....first post, date was wrong (7/14) thought maybe
it wouldn't get read...
|
| gareth replied to msa on 19 Jul 2004 |
Just wrap this round the bit you don`t want displayed if its blank
<?php if(strlen($_POST['fieldname']) > 0) { ?>
table code here
<?php } ?>
|
|
Archived message: skipping over blank text boxes in formmail..... (Macromedia Dreamweaver)