Hi Guys, im mikeg from philippines . Guys i hope you can give me an idea, actually this is easy though im new to php. How i can read this value or parameter in URL example: www.domain.com/test.php?12 i need to get the value 12 but how? is parsing from right to left is the only option and when i encounter the ? thats the value i need...is there another way? Thanks a lot, mikeg
if you use isset() you will have to make a loop if it can be more values like while $i < 1000000){ if (isset($_GET[$i])){ $value = $i; } $i++ } (the above is a waste of resources on the server)Or easyer why not www.domain.com/test.php?ID=12 then you can read $_GET['ID'];
Well, it solved the problem that was presented. Not enough info to give a better solution without making assumptions.
hi guys, first of all i like to thankyou all for the quick response. Actually i agree to thomas to use this method: www.domain.com/test.php?referrer=12 unfortunately the client request this method www.domain.com/test.php?12 I'll try now you suggestions. Thanks again, mikeg