Ok, I found the following code posted on here and ahve modified it to my needs. The only problem is I have checkboxes on my form and only want to print the value of the “checked” checkbox. Also, the “submit” and “print” button values keep printing and I would like them not to print.
Thanks for any help!
[SIZE=1]<script type=”text/javascript”>
function print_text(some_text){
if(window.createPopup){
var oPopup = window.createPopup();
the_script = oPopup.document.createElement(‘script’);
the_script.src=”popup.js”;
oPopup.document.body.innerHTML=some_text;
oPopup.document.body.appendChild(the_script);
oPopup.show(100, 100, 0, 0);
}else{
the_script = document.createElement(‘script’);
the_script.src=”popup.js”;
test = window.open();
test.document.write(some_text);
test.document.body.appendChild(the_script);
setTimeout(‘test.close()’,200);
}
}
function print_form(form_element){
text = “”;
for(x=0; x<form_element.elements.length; x++){
text += form_element.elements[x].value + “<br><br>n”;
}
print_text(text);
}
</script>