Jump to content
xisto Community

drwael

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by drwael


  1. i couldn't find a topic on it. i used to be a reserve for my state, unfortunate i didn't actually get in though.

    who else plays? it's a great sport

    yes it is a cool sport, it's my first time to know its name in english, unfortunately i dont see it a lot on tv

  2. hi everybody,
    i am new to php programming,
    i have this code in page number 1:

    <?php	$pages = array(				'number1' => 'number1.php',	'number2' => 'number2.php',	'number3' => 'number3.php',				'number4' => 'number4.php',		);			if (isset($_GET['page']) && isset($pages[$_GET['page']]))				{					include($pages[$_GET['page']]);					} else {						include($pages['number1']);				}?>

    but i dont want to have 4 pages called number1, number2, number3, number4

    i wanna have just 1 page that have a code like this:

    <?php$number1 = "<img src=\"images/number1.gif\" width=\"57\" height=\"171\" alt=\"\">";$number2 = "<img src=\"images/number2.gif\" width=\"57\" height=\"171\" alt=\"\">";$number3 = "<img src=\"images/number3.gif\" width=\"57\" height=\"171\" alt=\"\">";$number4 = "<img src=\"images/number4.gif\" width=\"57\" height=\"171\" alt=\"\">";?>

    so how can i include that second page through the first code?

    thanks for your time
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.