| Web Design & Programming Building websites, coding scripts or developing apps? html, css, javascripts, ajax, php, asp, java, c+, C++ and other geeky info is here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 3
![]() | Alright, I don't need a fancy explanation or someone to tell me I need to use AJAX... I just want the source. I don't have the time to learn JS as this project is due tomorrow afternoon. The point of this is to have a JS code that throws a different result for everyone. I want to have the result written and logged down to an internal file, aka file.txt. I figured the best way for this is to have the entire result go into php and become equal to a variable, where then I could write the fopen/fwrite and fclose to file.txt so now, let's pretend the main script is: <script language="javascript"> ... ... ... ... </script>. For everyone it is different and I want the result of the script written/logged, not the source code. in the end I want <?php $jsvar = the result of the script, let in mind the script result could vary from 1 sentence, to 50 lines. Can anyone PLEASE take the time to right this for me, as I have spent the last 24 hours straight on the computer trying to code it myself, and have failed miserably. Thank you in advance! |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |