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 […]