Help with writing JavaScript to a txt with PHP
Posted: Sun Nov 12, 2006 5:08 pm
Hey everyone!
I am trying to get my java script ot be written to a text file in PHP. Here is the code:
Which is later put into fwrite. The only problem is, is that with the java script you need the double quotes for onClick and that conflicts with my variable declatartion in PHP and gives me a parse error. I was wondering if there was a way around this.
Thanks,
Henaro
I am trying to get my java script ot be written to a text file in PHP. Here is the code:
Code: Select all
$quote = "<p onClick="sendText(document.lolform.posting, '<a href=$random>$username</a> said: <Br>$post')">[QUOTE]</p>";Thanks,
Henaro