Jump to content

Anchor includes into the $_get variable


ted_chou12

Recommended Posts

Hi, i have a page, the link looks like this:

http://domain.com/page.php?var=val#anchor, but the anchor seems to be included into the var varaible, so it reads like val#anchor altogether, the page looks like:

$user = $_GET['user'];
$user = strtolower($user);
require("../mysqlconnection.php");
$read = mysql_query("SELECT displayname FROM usercus WHERE username='$user'");
$r = mysql_fetch_array($read);
$dname = $r['displayname'];
if ($dname == "") {$invalid = true;
$title = "ErrorDocument 404";}
else {$status = file("storage/$user.txt", FILE_IGNORE_NEW_LINES);
list($lastmoddate, $title1, $banner, $bgcolor, $bgimage, $bgwatermark, $font, $textcolor, $datecolor, $order, $header, $footer, $authority) = explode(";seDp#", $status[0]);
$title = "$dname's Blog";}?>
<title><?php echo $title;?></title>

There are some redundant codes, (can be ignored)

Thanks,

Ted

Link to comment
Share on other sites

If you have multiple number-signs in the url, then all but the last segment following the number sign, would be part of the GET variables ( I think ).

 

As far as I know, that is controlled by the web-server (i.e. apache). But I've never heard of apache having this problem... What web server are you using ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.