phpretard Posted February 22, 2008 Share Posted February 22, 2008 How can I make this statement work? The link =<a href='index.php?page=contact'>Link</a> $_GET['page'] include (folder/$page.php'); The above doesn't work. Any help? -Anthony Quote Link to comment Share on other sites More sharing options...
sasa Posted February 22, 2008 Share Posted February 22, 2008 $page=$_GET['page']; include ("folder/$page.php"); Quote Link to comment Share on other sites More sharing options...
phpretard Posted February 22, 2008 Author Share Posted February 22, 2008 It worked great but what's the differnece between ' and " ? (if you don't mind sharing) Quote Link to comment Share on other sites More sharing options...
sasa Posted February 22, 2008 Share Posted February 22, 2008 try $a = 'sasa'; echo '$a'; echo "<br />\n"; echo "$a"; and you can see Quote Link to comment Share on other sites More sharing options...
drisate Posted February 22, 2008 Share Posted February 22, 2008 you can use vars only in double quotes ;-) 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.