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 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']; ?> 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 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
Archived
This topic is now archived and is closed to further replies.