Hi,
I have a multitude of forms, that all need one extra field adding, exacly the same field on each form, so I have written a function to echo the form elements.
Thing is, I am retrieving and inserting data into this box, so in between the textarea tags, I have
<? echo "$gen_other"; ?>
My function is thus so far:
function extra(){
echo "Use this space to enter any information that you need to give us.";
echo "<p>";
echo "<TEXTAREA rows=10 cols=40 NAME=gen_other>";
echo "$gen_other";
echo "</textarea>";
}
but on the line with the $gen_other, I need to echo the php tags themselves as in:
echo "<? echo "$gen_other"; ?>";
which obviously doesnt work.
I tried \ing out the opening and closing < and >, but no luck.
Im sure its really simple...any ideas?