Forum Moderators: coopster

Message Too Old, No Replies

How do Get '#' and '%00' Via Query?

The '#' ignore every thing followed, how I get it?

         

akameng

8:43 pm on Oct 13, 2007 (gmt 0)

10+ Year Member



Hello All,

The below is simple script to Print $_GET variables,

<?php
echo $_GET['var'];
?>

It's ok for more bits,
page.php?var=hello => print: hello
page.php?var=hello1&var=hello2 => print: hello2
BUT:
page.php?var=#mywords => print: (i.e print nothing)
page.php?var=%00 => print: \0 (with magic_quotes_gpc=on)
page.php?var=%00 => print: NULL (null byte)

Can some one tell me what chars allowed? and how I can get it?
and how deal with it?
excluding:htmlentities(), htmlspecialchars()

With very Thanks

BEST REGARDS

jatar_k

6:53 pm on Oct 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I am not sure this is exactly what you mean but this document shows what is allowed in a url/uri

[w3.org...]

Achernar

10:54 am on Oct 16, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



What is after the hash # is never transmitted by the browser.

joelgreen

12:45 pm on Oct 16, 2007 (gmt 0)

10+ Year Member



The following characters have special meanings in URLs and are escaped by converting them into a hexadecimal ASCII code (%##):

* All characters with ASCII values less than 32 decimal (0x20 hex) or greater than 127 decimal (0x7F hex).
* Any characters from the set:!"#$%&'()+,/:;<=>?[\]^`{\}~
* DELETE
* SPACE. Spaces are escaped by replacing them with pluses (+).

akameng

9:51 pm on Oct 16, 2007 (gmt 0)

10+ Year Member



Very Thanks For all
Now Understooood, thank you again..

( All for one and one for all ) that's reall...