The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Flow Control, Confirm Password
Forca
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Forca
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 5th May 2024 - 05:32 PM