I'm having a little problem getting PHP and Javascript to work together on a little project i'm working on. Here's my problem,
I have a form that has to be sent to one file and it contains the fields i want to appear on a preview popup.
I did use a script (Below) that wrote a tempary file, but it did not work for me as it could not load a template into the file.
Can only help?
The Javascript i was using that wrote tempary files looks like this
Code:
<script language="JavaScript">
function preview() {
temp = document.reply.message.value;
preWindow = open("",
"preWindow"," menubar=yes, scrollbars=yes");
preWindow.document.open();
preWindow.document.write(temp);
preWindow.document.close();
};
</script>
Then i done a onclick (Form Button) to send it to preview().
What i really need is a javascript that will either set a cookie or see what is in the field and post it to another page.
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
|