0
I have a function that registers client
If the user presses the sign-up button the client will perform the function
If the user press the button to register phone, will perform the same function and then will register the phone of this customer.
I have a client record in a <form>
and is going through $_POST and phone registration in another <form>
also for $_POST
when I press the phone register, it registers the client then registers the phone but it does not pass the values of the first form, then all fields of the client are empty and all fields of phone filled
Note: if I put one form inside the other, the client registration button simply doesn’t work
Please put the codes here to facilitate our understanding.
– denis
You probably just need a FORM and client and phone to be INPUT fields within that single FORM,
– denis
You should not put one form inside the other, they should be separate. With the Forms separately, when you use the Ubmit button, the $_POST object will only have the fields from that form that you clicked on.
– Bins
Each POST sent from a form Ubmit to the server form is responsible only for its data collection
– Renan Chaves
Any alternative to this problem? what I need is a button register the client, the other button will serve to register phone, but if the user did not press the button to register the client, the same will register
– Thales Fossalussa