|
-
Sep 29th, 2000, 12:13 PM
#1
PHP is better for this kind of thing.
-
Sep 29th, 2000, 12:39 PM
#2
Monday Morning Lunatic
Yeah - why does it specifically need to be client-side?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 29th, 2000, 06:21 PM
#3
Hyperactive Member
"People who think they know everything are a great annoyance to those of us who do."
-
Sep 29th, 2000, 06:36 PM
#4
Sorry, I would have said more, but at that time I was at school, and the teacher was nearing...... 
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
Code:
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 
[Edited by denniswrenn on 09-29-2000 at 07:48 PM]
-
Sep 29th, 2000, 06:59 PM
#5
Hyperactive Member
It seems he's looking for a client side solution, so this should work.
"People who think they know everything are a great annoyance to those of us who do."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|