PHP is better for this kind of thing.
parksie
Sep 29th, 2000, 12:39 PM
Yeah - why does it specifically need to be client-side?
noone
Sep 29th, 2000, 06:21 PM
http://developer.netscape.com:80/docs/manuals/js/client/jsref/location.htm#1193776
Sorry, I would have said more, but at that time I was at school, and the teacher was nearing...... :eek:
PHP is so much better for this kind of thing, because if the register_globals "Variable" is turned on in php.ini, you can access the query string like this
For example, if the URL is
http://www.url.com/page.php?hello=no
the code to access it would be
<?
if (isset("$hello")!=0) {
//its true, display the value
echo $hello;
}
}
?>
actually you don't need the isset, that just makes sure its there,
if you don't use isset, and its not there, there are no errors, just no display
<?
//if the url is just http://www.url.com/page.php instead of ..?hello=no
then no output will be displayed.
echo $hello
?>
and thats it :D
[Edited by denniswrenn on 09-29-2000 at 07:48 PM]
noone
Sep 29th, 2000, 06:59 PM
It seems he's looking for a client side solution, so this should work.