- Impact
- 487
Weird problem... I had used the following code on a php page for months, but it seems to have stopped working, and I don't understand why.
What I want, is to simply grab the '333' (or whatever number) from the URL and place it in the body of the page. Example:
http://gapservices.com/?go=333
or
http://gapservices.com/index.php?go=333
Then this is in the body of the page where I want '333' to appear. You can't see it when you view the page source code, but it is there:
What am I doing wrong? Or has something changed in PHP? I can't figure out why it stopped working, when it used to work just fine. Is it the 'strip_tags' thing maybe?
What I want, is to simply grab the '333' (or whatever number) from the URL and place it in the body of the page. Example:
http://gapservices.com/?go=333
or
http://gapservices.com/index.php?go=333
Then this is in the body of the page where I want '333' to appear. You can't see it when you view the page source code, but it is there:
Code:
<?php
$item = strip_tags($_GET['go']);
echo $go;
?>
What am I doing wrong? Or has something changed in PHP? I can't figure out why it stopped working, when it used to work just fine. Is it the 'strip_tags' thing maybe?
Last edited:
















