in reply to Sending data to browser's URI field via POST

Process the form data, submit it to the mySQL database, collect the ID, and forward the browser to the proper URL. As mentioned above, a Location header will do this:

print "Location: $newurl\n\n";

but I personally wouldn't mess around with header codes. All you have to send from your script to make this work is the Location header.