Jump to content

How to generate unique forms with ID's?


Charkel

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/287813-how-to-generate-unique-forms-with-ids/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.