Internet Marketing Business Forum


Internet Marketing Business Forum » MAIN FORUMS » Web Design & Programming » javascript script result to php variable?
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.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-01-2009, 06:50 PM   #1 (permalink)
 blargh's Avatar
 
Status: Junior Member
Join Date: Aug 2009
Posts: 3
blargh is on a distinguished road
Default javascript script result to php variable?

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!
blargh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:27 AM.
Powered by vBulletin® Version 3.7.0 Beta 6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.


Nav Item BG