So all you ned to do is write this as part of the html on the page.ALWAYS use POST for this, never use GET as it exposes passwords. Then the submit button can call the page again, At the beginning of the page you can have an IF statement to confirm the details and then re-show the form if say, passwords do not match or the email is not an email. If there are no errors insert the details into the database and this should create a unique numerical ID to identify the user and tie any relevant data to them. Store passwords encrypted. Plain text storage can make your site wide open to hackers. Then it can call the welcome or home page using data from the user's account to build the page as required.
No comments:
Post a Comment