Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.