Internet Marketing Business Forum


Internet Marketing Business Forum » MAIN FORUMS » Web Design & Programming » javascript script results = 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-03-2009, 09:25 PM   #1 (permalink)
 blargh's Avatar
 
Status: Junior Member
Join Date: Aug 2009
Posts: 3
blargh is on a distinguished road
Default javascript script results = php variable?

i need to take the result of a javascript script, make it equal to a php varible, fopen, fwrite, fclose

let's say: <?php $yahoo = "?> <script>alert(document.cookie)</script> <? "

it would take the writing, not the cookie result. instead of an alert popup, the result will be written onto the index.html. i need to get that to be hidden and instead, written into a txt file.

so my tasks will run silently, as when the person visits, it executes the javascript, takes the result, writes it to a .txt, and the user never knows this happens or sees the index.html change in any way


anyone know how to do such a thing? thanks

if there is a way to do this all in javascript, could be better, but i prefer php. none the less, tell me the code on how to do it in javascript, if possible.
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 08:41 AM.
Powered by vBulletin® Version 3.7.0 Beta 6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.


Nav Item BG