在PHP中POST编辑数据

I got field which is populated with autosuggest. Informations retreived from table are: project name and project id, like this - project (123) - this is what i have in input field. How to post just id in another table?

I have insert code that inserts all data - project (123) but how to separate it before post is done and have just id posted?

Thanks

code for insert

$save="insert into artefact (name, description, claim, status, location, type, project, creator) 
values ('{$_POST['name']}','{$_POST['desc']}','{$_POST['claim']}','{$_POST['status']}','{$_POST['location']}','{$_POST['type']}','{$_POST['project']}','{$_POST['creator']}');";

I would modify that autosuggest script to insert project id in seperate hidden field and then use it to save data.