Off Topic:

Originally Posted by
nichemtktg
My link is: <a href="javascript:void(0);" onclick="miniatures()">miniatures</a>
This is generally considered bad practice nowadays because a href is meant to be used to navigate to another page, not run javascript.
A more acceptable way is to use
Code:
<a href="" onclick="miniatures(); return false;">miniatures</a>

Originally Posted by
nichemtktg
How do I send the value in a js var to a php var?
The short answer is you can't directly because as mentioned earlier, php code is run on the server before any html is sent down "the pipe" to the browser where your javascript is run.
Your options include to use AJAX (if you don't want a page refresh) or send the variable's value in a query string to a php script and assign the sent value to a php variable and then do whatever processing you need server side before redirecting to wherever. But your options will depend on what you are trying to do overall.
Bookmarks