wynnewade Posted April 30, 2006 Share Posted April 30, 2006 I have a multi-part submission form for a support application for us, the manufacturer - the reseller's information is submitted, the customer's information is submitted, then the warranty support information needs to be submitted.How can I retrieve the CustomerID after I insert a record into the customer table in mySQL and pass it to the CSQdetails.php page?Thanks,Jon Link to comment https://forums.phpfreaks.com/topic/8765-newly-inserted-record-id/ Share on other sites More sharing options...
toplay Posted April 30, 2006 Share Posted April 30, 2006 Right after you insert the customer id use:[a href=\"http://us2.php.net/manual/en/function.mysql-insert-id.php\" target=\"_blank\"]http://us2.php.net/manual/en/function.mysql-insert-id.php[/a]As for passing something onto another page, the usual options apply depending on your needs and security concerns:pass value through the URL (GET method)through hidden field (when using forms. GET or POST method)save in a cookiesave manually in a file on server and then read itin memory (if host allows it and using Linux)save in PHP sessions (IMO, this is the best choice)hth. Link to comment https://forums.phpfreaks.com/topic/8765-newly-inserted-record-id/#findComment-32205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.