driving me bonkers...keep getting javascript errors no matter what combination of quotes and double quotes I use...
Code:echo "<td><textarea onclick=edit_text('0','$value'); name='".$value."' id='".$value."' class='err_box'></textarea></td>";
Printable View
driving me bonkers...keep getting javascript errors no matter what combination of quotes and double quotes I use...
Code:echo "<td><textarea onclick=edit_text('0','$value'); name='".$value."' id='".$value."' class='err_box'></textarea></td>";
instead of using echo, just escape the php code and use html:
PHP Code:?>
<td><textarea onclick="edit_text('0','<?php echo $value; ?>'); name='<?php echo $value; ?>' id='<?php echo $value; ?>' class='err_box'></textarea></td>
<?php ;
yeah, that should do it. got into bad habbit with all this echo stuff.