plz anybody help me
i want to use javascripts variables in php but i can't able to do that
so sugess me some thing to do that
regards

mahendra

Since JavaScript runs in the browser the only way it can talk to PHP is through Ajax.

There are 2 ways you can explore:

1) You can set cookie values in Javascript and get the cookie values in PHP.

2) Call the php file with GET parameters set by Javascript.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.