Possible Duplicate:
How to pass JavaScript variables to PHP?
how would I go about moving a javascript variable over to a php script without a form submission?
is it even possible?
ajax is an acceptable option but how
lets say I want to run thisnewoption.php in process sending it javascript variable imgfilename which contains a string
Once your php page has loaded, there’s no going back. The best way to go about passing variables ( data ) back to the server is with ajax, so it might be time to brush up on ajax http://api.jquery.com/jQuery.ajax/
Update: Tell you what, here is what a really basic ajax call looks like, notice that is send data to the server here with POST: