Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Integer to code and back
Re: Integer to code and back
What's wrong with having the unencrypted integer there? As long as you
make sure you *check* the hashes (which code2int does!), then you're safe.
for ($i=1; $i<=10; $i++)
$c = int2code($i);
print "<li><a href=\"view.php?number=\">view </a>\n";
$c = $_GET['number'];
$i = code2int($c);
// show the image here.
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
- » CGI PHP vs. FastCGI vs. mod_php vs. application server?
- — Previous thread in » PHP Scripting Forum