Results 1 to 2 of 2

Thread: style relyant site

  1. #1

    style relyant site

    i new to the php biz, and i have been trying to build a site that revolves around the a
    $_GET[style] basis, in other words my tags go like

    <?echo "<img src=\"".echo $_GET[style]"_myImg.jpg\"?>
    and
    <a href="?style=<?echo $_GET[style]?>&page=home" rel="nofollow" target="_self">home</a></td>

    but when i include a page, the included page cant access the $style...
    and someone please tell me and easy way to have and included page get the var values of the URL or at least its parent page???

  2. #2
    Not sure what you mean but in main page put:
    PHP Code:
    $style $_GET['style']; 
    and in the included page put:
    PHP Code:
    echo $style//or whatever you want to do with the variable 
    Not sure what you mean though.
    Web Design and Web Development blog
    Designer Notice: Browser List for design compatibility

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012