Jump to content

happyjack825

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

About happyjack825

  • Birthday 08/25/1989

Profile Information

  • Gender
    Male
  • Location
    Massachusetts

happyjack825's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. $_GET still won't cooperate from the root, which is where I'm testing things from. I changed the location of the root from "C:\Users\Sean\Web Design" to "C:\server" with no change in results, so the root is now back to "C:\Users\Sean\Web Design". That weird "p?" doesn't show up when new_file.php is in the root (as it is now). Unfortunately I won't be back until tonight... but thank you guys very much for the assistance so far!
  2. Nope, no .htaccess files, and I'm not sure what mod_rewrite is, so I'm going to assume not? Output of that code: Is that "p" before "?name=Joe" supposed to be there? EDIT: I moved new_file.php to the root of the server... the output changed to this: But my original script still does not work from its new location... EDIT 2: Should I change the location of the root directory for server? As it stands now it is C:\Users\Sean\Web Design.
  3. @ rhodesa: I tried your code, this is the output (url: new_file.php?name=Joe): @ PFMaBiSmAd: Nope, each time I request "new_file.php?name=Joe" it shows up in the log just once (with "?name=Joe" present, as it should be).
  4. Well the code I've posted is the entirety of the test script, so I know there's no other variables. I'm pretty sure it's an issue with $_GET but I couldn't figure out what it was. register_globals is definitely off. I'm positive the URL contains the correct information, here is an excerpt from the server log: I'm just very stumped . Any other ideas? Let me know if I need to post more information. I appreciate all the responses . Thanks!
  5. Ok, maybe I lied when I said I didn't play with php.ini . I tried toggling register_globals on and off because I read about that elsewhere but it didn't seem to help. It is off right now: Even with register_globals on I get the same PHP notice. Thanks!
  6. I'm going to guess that the problem is being caused by the use of position: absolute;. I would recommend experimenting with relative positioning instead.
  7. Hello, I'm running PHP 5.2.9 on a local server to test my projects locally but for some reason using $_GET will not return the values in the URL and will throw an "Undefined Index" notice. If I upload the same script to my web host, it works as it should. For example, on my local server, the URL I'm using for the test script is /new_file.php?name=Joe. Then, to retrieve the value of "name", I use this: <?php $name = $_GET['name']; echo $name; ?> Which results in: If I check to see if "name" is defined the URL, I can evade the notice, but the value of "name" is still not retrieved from the URL: <?php if (isset($_GET['name'])) { $name = $_GET['name']; } else { $name = ''; } echo $name; ?> I haven't made any modifications to php.ini and I've searched for hours on various forums and other web sites for a solution but I can't seem to find one... Any help at all would be greatly appreciated! Thank you, --Sean
×
×
  • 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.