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()
Did you know?Explore Trending and Topic pages for more stories like this.

Any help appreciated
No comments posted yet

Your Answer:

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

Syntax Help
Code:


im having trouble with that code snipped
Parse error: syntax error, unexpec

Line break?
Hi, I'm new to the forum and new to php. I'm not sure if I'm using the correct terminology so here i

Error in query: Resource id #4??
hey guys, having a minor (i think) problem here that i havent been able to figure out. long story sh

foreach iterator
Hi Guys
Does the foreach loop have an inbuilt iterator ?

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

why is it over writing
Code: $filepaths[] = $_FILES['new_image'];
foreach ($filepaths as $filepath)
{
$imagename =

use an array from 1 class in a second class
I have a class that adds data to an array

Then I have a second class and I need to check if t

Login script (probably a simple error)
dbConfig.php
Code: <?
// Replace the variable values below
// with your specific dat

Javascript form submit and radio buttons?
When this form is submitted, it is automatically resubmitted using JS.

All my fields are carr

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