Jump to content


Photo

mydomain.com/index.php?something


  • Please log in to reply
8 replies to this topic

#1 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 21 July 2006 - 02:47 AM

how do i make that ?something part.

I've tried everything.

Here's what i've tried so far and it doesn't work!

<?php
if($_GET['something'] == NULL) {
include('whatever.php');
}
?>


#2 hvle

hvle
  • Members
  • PipPipPip
  • Advanced Member
  • 667 posts
  • Locationmelbourne, Australia

Posted 21 July 2006 - 02:56 AM

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
Life's too short for arguing.

#3 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 21 July 2006 - 02:57 AM

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

I don't want to pass a value. Your missing the point.

#4 hvle

hvle
  • Members
  • PipPipPip
  • Advanced Member
  • 667 posts
  • Locationmelbourne, Australia

Posted 21 July 2006 - 03:08 AM

if you don't want to pass a value, then there is no point for that '?something' part.
Life's too short for arguing.

#5 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 21 July 2006 - 03:10 AM

if you don't want to pass a value, then there is no point for that '?something' part.

this forum is for help, your not helping.

#6 steelmanronald06

steelmanronald06
  • Staff Alumni
  • Advanced Member
  • 2,004 posts
  • LocationOk

Posted 21 July 2006 - 03:13 AM

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.

#7 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 21 July 2006 - 03:14 AM

Please be more exact on what you want to do.  Give us a greater detail.

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

#8 hvle

hvle
  • Members
  • PipPipPip
  • Advanced Member
  • 667 posts
  • Locationmelbourne, Australia

Posted 21 July 2006 - 03:24 AM

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
Life's too short for arguing.

#9 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 21 July 2006 - 03:27 AM

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


Thanks a  lot i got it to work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users