Hello, I'm fairly new to CakePHP and I had a question which someone could hopefully answer.
I'd like to create a form for my website where users can fill out the information and submit it to the an email (done through the form-handler.cgi). My problem is, on my form, I want each submission to start with a unique ID starting from 1 and working down, increasing each time. So example: First person comes and filles out the form, on the top of the form it says "Invoice 1" and once he hits submit I receive all the information in my email including the ID number. And now second person will have invoice 2, etc, etc. I've made a database table called "invoices" which has a unique auto_incremental ID that is unsigned. As for the controller and view files, I really have no idea how ot proceed. Any suggestions? Thank you. -- View this message in context: http://www.nabble.com/Auto-Increment-ID-in-Form-tp23701450p23701450.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
