Hi-
I put all my html code in variables and I wanted to include some javascript in the htnl, but the browser doesn't appear to parse it. i escape out the / and everything- the code looks fine when i view source but doesn't print the form element.... here is an example
<pre>
$html="
<table width=\"200\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\">
<tr>
<td class=\"text\">Enter Your User Name and Password.
</td>
</tr>
<tr>
<script language=\"javascript\">
if (ns == true) {
document.write(\\"<td><input type=\"text\" name=\"login_name\" value=\"User Name\" class=\"form_input\" size=\"25\"></td>\\");
} else {
document.write(\\"<td><input type=\"text\" name=\"login_name\" value=\"User Name\" class=\"form_input\" size=\"30\"></td>\\");
}
</script>
</tr>";
<pre>
so, when viewing source, i get what i would expect- but no form elements. any ideas? i know there are ways of doing this particular function in php- getting browser etc, i'm just using this as an example of putting javascript in a variable....