Eugene Posted July 21, 2006 Share Posted July 21, 2006 how do i make that ?something part.I've tried everything.Here's what i've tried so far and it doesn't work![code=php:0]<?phpif($_GET['something'] == NULL) {include('whatever.php');}?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/ Share on other sites More sharing options...
hvle Posted July 21, 2006 Share Posted July 21, 2006 you have to pass a value for 'something':mydomain.com/index.php?something=valueofsomethingif you like to add more var like something:mydomain.com/index.php?something=valueofsomething&something1=valueofsomething2 Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61478 Share on other sites More sharing options...
Eugene Posted July 21, 2006 Author Share Posted July 21, 2006 [quote author=hvle link=topic=101328.msg400961#msg400961 date=1153450582]you have to pass a value for 'something':mydomain.com/index.php?something=valueofsomethingif you like to add more var like something:mydomain.com/index.php?something=valueofsomething&something1=valueofsomething2[/quote]I don't want to pass a value. Your missing the point. Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61479 Share on other sites More sharing options...
hvle Posted July 21, 2006 Share Posted July 21, 2006 if you don't want to pass a value, then there is no point for that '?something' part. Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61484 Share on other sites More sharing options...
Eugene Posted July 21, 2006 Author Share Posted July 21, 2006 [quote author=hvle link=topic=101328.msg400968#msg400968 date=1153451313]if you don't want to pass a value, then there is no point for that '?something' part.[/quote]this forum is for help, your not helping. Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61485 Share on other sites More sharing options...
steelmanronald06 Posted July 21, 2006 Share Posted July 21, 2006 Please be more exact on what you want to do. Give us a greater detail.EDIT:Are you wanting to make it so if something dosn't exist a page will create it for you? Just something that hit me that might be what you want. Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61486 Share on other sites More sharing options...
Eugene Posted July 21, 2006 Author Share Posted July 21, 2006 [quote author=steelmanronald06 link=topic=101328.msg400970#msg400970 date=1153451608]Please be more exact on what you want to do. Give us a greater detail.[/quote]I need to code that will allow me to do like an include when they click on ?somethingEDIT: http://jooldesigns.net - example of something i wantlook on the links at the left Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61488 Share on other sites More sharing options...
hvle Posted July 21, 2006 Share Posted July 21, 2006 oh i get it.instead of if($_GET['something'] == NULL) use:if (isset($_GET['something']))This is not a popular way to structurize your site thought Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61490 Share on other sites More sharing options...
Eugene Posted July 21, 2006 Author Share Posted July 21, 2006 [quote author=hvle link=topic=101328.msg400975#msg400975 date=1153452243]oh i get it.instead of if($_GET['something'] == NULL) use:if (isset($_GET['something']))This is not a popular way to structurize your site thought[/quote]Thanks a lot i got it to work. Quote Link to comment https://forums.phpfreaks.com/topic/15214-mydomaincomindexphpsomething/#findComment-61492 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.