Charkel Posted April 16, 2014 Share Posted April 16, 2014 Hello everyone, My company is in need of a form we can send to our customers with different options they can choose from. We are interested in what option they choose and want to log it in a database. We would like generate a form so that it gets a unique ID to send to the customer Example: http://companysite.com/form.php?id=123456789 And when the customer clicks the link it leads to a form with options customized for them. Example: Regarding order 12345 We have different options and you need to choose one: Option1: [ ] Option2: [ ] Option3: [ ] [SUBMIT] What is the best way to achieve this? I guess I need to develop some kind of panel to generate these forms with. Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/287813-how-to-generate-unique-forms-with-ids/ Share on other sites More sharing options...
cyberRobot Posted April 16, 2014 Share Posted April 16, 2014 You should only need to develop a single form. The script that generates the form would just read in the ID, make sure it's valid, and pass it along with the rest of the form submission. The ID could be saved to a hidden variable, for example. Then the script which processes the form would get the ID from the form and connect it with the corresponding customer account. Quote Link to comment https://forums.phpfreaks.com/topic/287813-how-to-generate-unique-forms-with-ids/#findComment-1476369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.