Categories
CMS Mastering Development Wordpress

Generate custom code from registration form

I need to generate a custom code, kind of a hash code, from a field received in a form.

The code would be a function calculated from this particular field (a 6-digit number), and it has a few limitations: It has exactly 4 digits, and all digits must be between "1" and "3"… for instance "3221", "1431", etc. I already have the formula in an excel-like format. It´s OK if different field values return the same code in some cases.

How can I make this custom function to read the field from the form, calculate the code with my formula, and show it to the user or send it by e-mail? Is it feasible?

Thanks in advance!

Leave a Reply

Your email address will not be published. Required fields are marked *