Passing JS to PHP


Posted on 16th Feb 2014 07:03 pm by admin

So I have the following
Code: <?php
getdetails(?><script type="text/javascript">document.write(jsvariable)</script><?php );?>
The idea is that the getdetails() will process the JS output rather than doing mysite.com?data=jsoutput as I REALLY REALLY RALLY dont want urls like that. So why cant I get it to work, I think I have a syntax problem with opening and closing the getdetails()

Any help appreciated

No comments posted yet

Your Answer:

Login to answer
130 Like 15 Dislike
Previous forums Next forums
Other forums

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

Help With Showing Users On the Index Page
Ive got this code which works just how i want it to.

Code: <?
$timenow=time();

DirectoryIterator and Hacked Website
Hi Everyone.

My problem:
Some one has been sneaking in to my website hidden Iframes. I've

Query issues
I probably have this setup wrong well I know I do because nothing is showing up now. What I want is

OPINIONS WANTED
This is my login page code, and I want your opinion on it please!

Code: // Login ~ CHECKS

Display last record first.
I need some help how put the last record first and first record last.

Thanks

Code: &am

How to disable direct access to a file
Suppose I've 2 Files. 1.php & 2.php

I don't want anybody to access 2.php directly fr

Help with page encoding issue and weird characters
I'm trying to write a screen scraper and when I pull out the lines of the html file that I'm interes

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash