Hmm I am using javascript to open a new window when an image is clicked and then pass the contents of the textbox thru the URL.
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
var emailAddr = document.form.txtContents.value;
win = window.open(theURL+"?txtContents="+emailAddr,'emailWin',features);
win.focus();
}
//-->
</script>
<img src="../images/preview.jpg" border="0" onClick="MM_openBrWindow('previewmail.php','','scrollbars=yes,width=450,height=550')">
It seems as though i need to use the nl2br before i pass the text thru the browser, but i can't figure out how to do it with this javascript..
Not sure how to impliment the urlencode into this.... Any help is greatly appreciated!😃