I've cobbled together this form where I have a checkbox and textbox. when the checkbox is ticked some text is displayed. In that text there is the text from the textbox.
<Input type = 'Checkbox' Name ='ch1' value ="net"
<?PHP print $ch1; ?>
The problem is the text i enter has html tags <i> etc. and when the output is generated it italicizes the text (for example). I have tags in the sometext that i dont want to affect. I just want to effect the ' . $_POST['num'] . ' bit. Any ideas?
<?PHP
$ch1 = ' ';
$ch2 = ' ';
$ch3 = ' ';
if (isset($POST['Submit1'])) {
if (isset($POST['ch1'])) {
$ch1 = $POST['ch1'];
if ($ch1 = 'net')
{
$ch1 = 'sometext' . $POST['num'] . 'some more text';
}
}
etc (for different checkboxes)
}
?>
<?PHP print $ch1; ?>