[imp] save_sent_mail

Jon Starling jons@uk.uu.net
Tue, 22 Jan 2002 16:08:21 +0000 (GMT)


On Tue, 22 Jan 2002, Jon Starling wrote:

> Started by switching the compose to not be a popup window and then did a
> show source:
>
> --SNIP--
> <input type="checkbox" name="save_sent_mail"1 />
> --SNIP
>
> Looks as if there is an error in compose.inc
>
> --SNIP--
> <input type="checkbox" name="save_sent_mail"<?= $ssm_check ?> />
> --SNIP--
>
> I am a newbie to PHP but I presume there should be some kind of if
> statement to produce the checked="checked" XHTL Attribute instead of just
> outputting the value of $ssm_check i.e. "1"???

Changed

<?= $ssm_check ?> />

to

<?php if ($ssm_check): ?> checked="checked"<?php endif; ?>

and all seems to work now!

Thanks,
Jon