tommyinnn Posted March 27, 2012 Share Posted March 27, 2012 Does any1 know what would cause this problem? Here is the url www.mysite.com/profile.php?id=1447835&state=AL&firstname=TOM&lastname=ANDERSON When I try to echo the id, only 6 numbers appear, the 7th is stripped for some reason <? echo ($_GET["id"]); ?> would print 144783 if I change the $ID to 123456789 it will only echo 123456 Quote Link to comment https://forums.phpfreaks.com/topic/259810-get-problem/ Share on other sites More sharing options...
Chud37 Posted March 27, 2012 Share Posted March 27, 2012 You MUST be changing it somewhere before hand. When you echo it, are you echoing it at the very begining of the php page? Quote Link to comment https://forums.phpfreaks.com/topic/259810-get-problem/#findComment-1331571 Share on other sites More sharing options...
gristoi Posted March 27, 2012 Share Posted March 27, 2012 I agree with Chud37, works fine for me, must be somehing else in the script trimming it Quote Link to comment https://forums.phpfreaks.com/topic/259810-get-problem/#findComment-1331573 Share on other sites More sharing options...
tommyinnn Posted March 27, 2012 Author Share Posted March 27, 2012 yes thanks guys that was the problem, I moved the echo line up till it worked and was able to locate the problem, which as the variable $id, it was already being used in the members end of the script, changed it from $id to $num and it's fine, thanks again gristoi & Chud37! Quote Link to comment https://forums.phpfreaks.com/topic/259810-get-problem/#findComment-1331597 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.