View Single Post
Old 05-16-2008, 05:27 AM   #9 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

With the form you've made, include the ID in the URL. So the action tag will be action="<?php echo $_SERVER['PHP_SELF'] . '&id= '. $id; ?>".

But first you want to check the ID is save for HTML input via the GET variable:

if(!is_numeric($_GET['id']) OR empty($_GET['id'])) {
die('no valid id');
}

That is a very simple (but ugly) way to do it :)
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote