how can I use a variable from javascript or vbscript in php code in the same page???
php is run on the server, and javascript is run on the client machine, so, at least with javascript, you cannot send variables from javascript to php, unless you do it through a form, but you can't do it as part of a single script.