php var to javascript
php var to javascript
- Started
- Last post
- 4 Responses
- craigie
I'm passing a variable through the url eg: slide.htm?start=4, but cannot get the html page to access it. Any ideas?
cheers
- toastie0
how exactly are you trying to access it?
- craigie0
I've got a slideshow, and I want to use that variable in a javascript function to display the right image.
- toastie0
I dont see what it has to do with PHP, but in JavaScript you can parse the current URL using document.location.href and weed out the variables. Check out google.
- craigie0
Ok I'll try that
cheers