Dear
good afternoon
I am creating a form of complaints and I have a problem
The form must have a unique code so I created a script for it using the " Custom Element " , but I need the value it returns me to be placed on a table .
I noticed that when trying to create a new table appear the existing fields in the form minus the " Custom Element " .
The same situation occurs when the email is sent to the administrator , for, as the code is based on the date , minute, and second , when you click submit , the script runs again and the code that arrives to the administrator is different from that presented in screen before submitting the form .
Below is the code :
I do not know if I explained well .
What I really need is that my form submit a unique code and that for each user , a new code is generated .
This same code needs to be entered in the table and be properly sent to the administrator .
In await .
Grateful.
good afternoon
I am creating a form of complaints and I have a problem
The form must have a unique code so I created a script for it using the " Custom Element " , but I need the value it returns me to be placed on a table .
I noticed that when trying to create a new table appear the existing fields in the form minus the " Custom Element " .
The same situation occurs when the email is sent to the administrator , for, as the code is based on the date , minute, and second , when you click submit , the script runs again and the code that arrives to the administrator is different from that presented in screen before submitting the form .
Below is the code :
< ? php / / Echo uniqid ( ) , '<br />' ; $ year = substr ( date (' Y' ) , 3,1 ) ; $ month = substr ( date (' m ' ) , 1,1) ; $ day = date (' d ' ) ; $ hour = substr ( date (' H ' ) , 1,1) ; $ min = substr ( date (' i ' ) , 1,1) ; $ sec = date (' s' ) ; echo " <p> <centre> color='#ffffff'> _ < / font > < / p > " ; echo $ year $ month $ day $ hour $ min $ sec . ; >
I do not know if I explained well .
What I really need is that my form submit a unique code and that for each user , a new code is generated .
This same code needs to be entered in the table and be properly sent to the administrator .
In await .
Grateful.