bascially i have this:

$encode = stripslashes($_POST['encode']);

#    Name    Hex   
$encode = str_replace("%","%25", $encode);
$encode = str_replace("&","%26", $encode);
$encode = str_replace("#","%23", $encode);
$encode = str_replace("0","%30", $encode);
$encode = str_replace("1","%31", $encode);
$encode = str_replace("2","%32", $encode);
$encode = str_replace("3","%33", $encode);
$encode = str_replace("4","%34", $encode);
.....

etc, you can see the problems i'm having, can anyone suggest anything?

thanks in advance

    Are you just trying to return an ASCII value? Might as well just use [man]ord[/man]...

      the main objective is to make a hex encoder, i've scoured many a pages that google presents me to find one, but with no luck 🙁

      so i thought i'd have a bash at making one, what a fun project it turned out to be (i only expected to spend 2 hours max on it, been working on it for 6 already!)

        Write a Reply...