Jump to content

MasterK

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

MasterK's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I cannot figure this out and I know I'm just looking past the obvious... I am creating a simple "you are now leaving this website" page, Everything is setup, and all urls pointing to http://mysite.com?exit=http://externalsite.com, It should redirect to my exit.php which will redirect to the external site after 5 seconds. The problem is, the "http://" of the external site is causing a 403 forbidden, and even without it, anything with multiple &s isn't passing through. I cannot figure out how to get it to pass the full url to the exit.php...
  2. Like this? <?php echo "<textarea id=\"b_info\" name=\"b_info\" style=\"width: 327px; height: 185px\">$b_info</textarea>"; ?>
  3. <img src=../images/mbr_images/<?php echo H($mbr->getBarcodeNmbr()); $lower = ".jpg"; $upper = ".JPG"; if (file_exists('../images/mbr_images/' . H($mbr->getBarcodeNmbr()) . '.' . $lower)) { echo $lower; } else { echo $upper; } ?> height=150 width=100</img> I believe the problem is, This would echo eg, 1234..jpg as there is a period in the File_exists and in the $lower variable. This should work <img src=../images/mbr_images/<?php echo H($mbr->getBarcodeNmbr()); $lower = "jpg"; $upper = ".JPG"; if (file_exists('../images/mbr_images/' . H($mbr->getBarcodeNmbr()) . '.' . $lower)) { echo $lower; } else { echo $upper; } ?> height=150 width=100</img>
  4. Yea, after I posted I realised it was wrong I'm still learning Anyways, Here is how I would do it, Might not be the best way but it works... <?php include("header.php"); if (empty($_GET['boo'])) { $boo="news/show_news"; } else { $boo = $_GET['boo']; } include $boo . '.php'; include("footer.php"); ?> Posted at the same time as ProjectFear, but What he said
  5. You have the condition for If the Boo GET variable is empty, but your not telling it what to do if its NOT Empty
  6. Ok, I went and Edumacated myself a little, and then started playing with Javascript. and I have gotten what I'm going for. HERE But I am stumped on, Borders..? Such as the Trees, Water, Bushes, Edges of the Raised terrain.. How would I make it not possible to move the sprite there?
  7. Hello! I am really new to Ajax, been reading and playing with some tutorials and what not, But I haven't been able to find what I've been wanting to do. What I would like to be able to do is basically Walking on a map within the browser. Basically I want to move a little sprite across a image(map) when the arrow keys are pressed, and have certain parts of the image set as collision or un-walkable I know this can be done, I've seen other Browser based games doing it. Just haven't been able to find any examples/tuts online Any Sites/Tutorials/Hints/Tips are much appreciated Thanks in advance
  8. die(header('Location:http://www.google.com/')); This does work, I have used it a few times
×
×
  • 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.