Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to use javascript variable in php
Posted

Google[^] my friend...
 
Share this answer
 
The fact is you can't use javascript variable in php what you can do is send javascript variable data to php, lots of method can be applicable.

1. Using simple ajax request
2. setting hidden field value

but what you should do depends on your need and situation. you better speak clearly about what you need
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900