Flow Control, Confirm Password |
Flow Control, Confirm Password |
Forca |
Feb 15 2017, 09:43 PM
Post
#1
|
Member Group: Members Posts: 33 Joined: 29-April 16 Member No.: 24,203 |
Hi
I have two questions: 1. Why do online forms always as for confirm password when registering? 2. Suppose I have a webpage with a form. When the user (client) requests my webpage from the client browser, my webserver sends the html code which the client browser reads and displays the webpage with the form. The user populates the form at the client side and then presses the Submit button. From here on things get a bit tricky for me. My understanding is that the info submitted in the form is captured in a key-value array and made available to the PHP script (as per the action parameter in the form element) to which the info is POSTed. The PHP script in my cases then takes the values from the array and uses it to populate a MySQL database. What happens once this is done? For example at the end of my PHP script I have an echo command to let the client know that the registration has been successful. And that is the end of my php script. What happens then? Do I have to tell the php script to return to the html file that initially called it? Where am I going with this? I would like the client to see on his screen,"Registration successful!". Below this I want a link "Return to home". How do I get the php script to return control to the calling html page? Thanks. |
Forca |
Feb 16 2017, 03:06 AM
Post
#2
|
Member Group: Members Posts: 33 Joined: 29-April 16 Member No.: 24,203 |
Pandy, I'm talking here specifically about registering where the user has to choose a password. I am interested to know why the user has to confirm the password. Thanks.
|
Lo-Fi Version | Time is now: 5th May 2024 - 05:32 PM |