idire Posted October 6, 2008 Share Posted October 6, 2008 I'm trying to make a script which gets information from a parser, but the GET value on the parser gets two underscores added to it. Why? This is the code: Page 1: echo '<br><br>'.$temp.'<br><br>'; $link = 'http://www.rstracking.com/parser.php?change='.$temp; echo '<br>'.$link.'<br><br>'; $file = file_get_contents($link); echo '<br>File contents: '.$file.'<br>'; Page 2 (parser) $username = $_GET['change']; $sql = mysql_query("SELECT * FROM `change` WHERE username = '$username' LIMIT 0,1"); if(mysql_num_rows($sql) == '0') { //echo 'Sorry, this user is not signed up'; echo 'Username1: '.$username; } Output: (on page1) idire_2005 http://www.rstracking.com/parser.php?change=idire_2005 File contents: Username1: idire_2005__ Quote Link to comment Share on other sites More sharing options...
Psycho Posted October 6, 2008 Share Posted October 6, 2008 Where is $temp defined in the first script? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.