Need help sending url passed variables to an outside file
Posted: Sat Jul 12, 2003 11:26 pm
Hello, my first post so here we go.....
On my site i have a javascript menu, but the links in the menu need some of the variables i passed in my url to succesfully generate good url's...
For example....
say the url to the following website is
mysite.com/admin.php?adminid=blah
Now in that code snippet, some of php code in the vertical_data.php (which i might add for those of u that are confused; yes the PHP is embedded within the javascript) file needs to be able to use that adminid variable and after my attempts to echo $adminid within that vertical_data.php file I found out $adminid is not getting 'passed' (if you will). What do i need to do to allow that vertical_data.php file to grab that adminid variable?
Is this where i need to use sessions? If so any quick implementation examples?
Are there any questions you people have so i can better explain the problem? As you can tell i've had a hard time forming a question which also lowers the probability of googling this so... srry if its ez!
Thanks so much!
On my site i have a javascript menu, but the links in the menu need some of the variables i passed in my url to succesfully generate good url's...
For example....
say the url to the following website is
mysite.com/admin.php?adminid=blah
Code: Select all
<html>
<body>
Hi!
<SCRIPT language=JavaScript src="vertical_data.php" type=text/javascript></SCRIPT>
</body>
</html>Is this where i need to use sessions? If so any quick implementation examples?
Are there any questions you people have so i can better explain the problem? As you can tell i've had a hard time forming a question which also lowers the probability of googling this so... srry if its ez!
Thanks so much!