heh 🙂..
You're on your toes..
Yeah, I got a great answer on the Radio buttons in that thread and that solution is working perfectly.
For a checkbox, though its a slightly different approach I need, as the check box is only "on" or " ", and there's only one place in the form to mark it, rather than replacing 1 of 2 holders on the rtf document..
I've just got to the following this morning...
($fieldname == "on") ? dotick(fieldname) : dotick(null);
in the 'replacer' script, where
function dotick($field)
{
global $output;
$output = str_replace('%' . $field . '%', '[X]', $output);
return $output;
}
so i thought I'd post my results here for anyone searching around this topic.
Any thoughts on a more reliable and less 'hacky' method than just calling the function with 'null' for the case where the checkbox is NOT checked ?
Thanks for your dilligence 🙂.
/\/\iI{3