Unique ID, how to?

thetalaser 06 Jul, 2007
Before i started using Chrono Forms i was forced to use a separate php file from Joomla because of this very reason. And would like to know if and how its possible to create and record (as well as email) a unique id.

For the php form i have used this code:

$uniqueId = substr(md5(uniqid(rand(), true)), 0, 8);

But, where would i enter it into and how can it be recorded so that its listed in the table and email? Or is there a better way of creating a unique id number?
Max_admin 06 Jul, 2007
Hi,

Like this :

At your HTML put a hidden field called anything, for example : uniqueid and give it a value like this :

<?php echo $uniqueId = substr(md5(uniqid(rand(), true)), 0, 8); ?>


then select your form and hit create a table, now the "uniqueid" filed name will be listed so just choose it to be recorded.

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
thetalaser 07 Jul, 2007
And it works!

Thanks again for all your help, Chromo Forms is the best. It can do everything i need it to do.

Keep up the good work!
This topic is locked and no more replies can be posted.