Skip to main content
Participant
September 21, 2009
Question

How to generate a registration code after a user fills out a registration form?

  • September 21, 2009
  • 1 reply
  • 1950 views

When I create a dynamic registration form in Dreamweaver, I want the people who fill out the form to receive a code (random number) after they hit the submit button.  How do I do this?  Please help me, thanks!

This topic has been closed for replies.

1 reply

Participating Frequently
September 21, 2009

> How do I do this?  Please help me, thanks!

How you do this depends on what scripting language you are using, but you failed to mention that. And of couse, random means that two visitors could potentially have the same code - is that ok?

jrollo34Author
Participant
September 21, 2009

I will be using php...  I want to generate a code that is unique, so each person who registers could recall their registration if they need to.  Sorry for not being clear the first time.

DwFAQ
Participating Frequently
September 21, 2009

In your database create a field that is auto-numerical primary key for user_id. Then when someone registers their unique ID will be the primary key field.