Jump to content

x8668k

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

x8668k's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [!--quoteo(post=380287:date=Jun 5 2006, 08:30 PM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ Jun 5 2006, 08:30 PM) [snapback]380287[/snapback][/div][div class=\'quotemain\'][!--quotec--] well if you had even bothered to read my post... [/quote] I did, but as I said, I'm new at this, I didn't get it to work... :-/
  2. [!--quoteo(post=380170:date=Jun 5 2006, 01:56 PM:name=wisewood)--][div class=\'quotetop\']QUOTE(wisewood @ Jun 5 2006, 01:56 PM) [snapback]380170[/snapback][/div][div class=\'quotemain\'][!--quotec--] This will do what you wanted ... Providing you with multiple "pages" within one document. <?php echo "<a href=$_SERVER[PHP_SELF]?page=blog>Blog</a><br>"; echo "<a href=$_SERVER[PHP_SELF]?page=about>About</a><br>"; echo "<a href=$_SERVER[PHP_SELF]?page=gallery>Gallery</a><br>"; echo "<a href=$_SERVER[PHP_SELF]?page=contact>Contact</a><br>"; echo "<br><br>"; if($_GET[page]=="blog"){ echo " blog script goes here "; } if($_GET[page]=="about"){ echo " about script goes here "; } if($_GET[page]=="gallery"){ echo " gallery script goes here "; } if($_GET[page]=="contact"){ echo " contact script goes here "; } ?> [/quote] Thank you wisewood that did it, nice to get help so quickly. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] I changed it a little so it will go to the Blog page the first time you go to the page.
  3. This is what I want: [a href=\"http://x8668k.com/test.php\" target=\"_blank\"]http://x8668k.com/test.php[/a] But I want a normal link, not a submit button. This is part of a larger page but I have cut out the code I have problem with to make it easier to see. Thanks.
  4. [!--quoteo(post=380082:date=Jun 5 2006, 02:22 AM:name=Matt D)--][div class=\'quotetop\']QUOTE(Matt D @ Jun 5 2006, 02:22 AM) [snapback]380082[/snapback][/div][div class=\'quotemain\'][!--quotec--] Why even use a form? You don't have any input objects within your form. [/quote] I'm trying to make a site that goes to Test1 the first time you got to it. The other Test2-5 can be, About, Contact, Gallery, Blog and what ever. The reason for this is that I wanna test if it is possible to have one index.php and thats all, no other files, everything shold be in that file. So this small file I have made that echos different categories is just a test, the final page will of course show more then just echo Test1...
  5. Hi, I'm new at php and have a little problem... The code below works as I want it: [code]<html> <body> <?          if (isset($Test2)) { echo "Test2"; }     else if (isset($Test3)) { echo "Test3"; }     else if (isset($Test4)) { echo "Test4"; }     else if (isset($Test5)) { echo "Test5"; }     else { echo "Test1"; } ?> <form action="<?php_self?>" method="post">     <input type="submit" name="Test1" value="Test1">     <input type="submit" name="Test2" value="Test2">     <input type="submit" name="Test3" value="Test3">     <input type="submit" name="Test4" value="Test4">     <input type="submit" name="Test5" value="Test5"> </form> </body> </html> [/code] But I don't want a submit button, I want a link like: [code]<a href="Test1">Test1</a>[/code] Is that possible in some way? Thanks. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
×
×
  • Create New...

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.