jontyl Posted November 9, 2008 Share Posted November 9, 2008 If my php file is http://mydomain.com/test.php and I want to input a variable by enterering http://mydomain.com/test.php?var=1 how can I use it in php Please help, I'm only a beginner to php Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/132057-solved-really-simple-question-new-to-php/ Share on other sites More sharing options...
premiso Posted November 9, 2008 Share Posted November 9, 2008 <?php echo $_GET['var']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/132057-solved-really-simple-question-new-to-php/#findComment-686217 Share on other sites More sharing options...
jontyl Posted November 9, 2008 Author Share Posted November 9, 2008 Thanks, I'll try that Quote Link to comment https://forums.phpfreaks.com/topic/132057-solved-really-simple-question-new-to-php/#findComment-686218 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.