Jump to content

Archived

This topic is now archived and is closed to further replies.

Eugene

mydomain.com/index.php?something

Recommended Posts

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]
<?php
if($_GET['something'] == NULL) {
include('whatever.php');
}
?>
[/code]

Share this post


Link to post
Share on other sites
you have to pass a value for 'something':
mydomain.com/index.php?something=valueofsomething

if you like to add more var like something:
mydomain.com/index.php?something=valueofsomething&something1=valueofsomething2

Share this post


Link to post
Share on other sites
[quote author=hvle link=topic=101328.msg400961#msg400961 date=1153450582]
you have to pass a value for 'something':
mydomain.com/index.php?something=valueofsomething

if 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.

Share this post


Link to post
Share on other sites
if you don't want to pass a value, then there is no point for that '?something' part.

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[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 ?something

EDIT: http://jooldesigns.net - example of something i want

look on the links at the left

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.