Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7945049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:44:18+00:00 2026-06-04T00:44:18+00:00

I have an HTML file with a Form on it, where once the user

  • 0

I have an HTML file with a Form on it, where once the user clicks “submit”, a PHP file is called which connects to a MySQL database and updates it with data from the Form.

Question is, how do I mask/hide the passwords to the MySQL database in my PHP code file?

I’m reading all sorts of things about working with “config” files and/or moving things into different directories so as to prevent others from accessing them – I get it in theory – but what are the actual steps I’m supposed to take to make this happen? Like where do I start? What’s step #1, what’s step#2, etc?
Everyone seems to offer little snippets of code, but I haven’t found any good start-to-finish tutorial on this.

I called GoDaddy – where my account & DB are sitting – to see if their tech-support guys could help – no one was able to tell me what exactly to do, where to start, etc.

Can anyone out there help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:44:19+00:00Added an answer on June 4, 2026 at 12:44 am

    I think the other answers here are missing the point. If I’m not mistaken, you’re talking about your mysql user password. The one which you use to establish a connection to the database in the first place. Right?

    Well, you don’t hide this. It’s in a php file which is code. The public can’t read your code (assuming your server is secure) so don’t worry about that. Yes, your password is stored simply as text in a php file. It’s fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html form for uploading a file, which is as follows: $uploadhtml
I have this HTML: <form action='uploadhandle.php' method='POST' enctype=multipart/form-data> <input type='file' class='fileinput' id='photo1' name='photo1'> <input
I have a PHP validate statement for a file upload on a HTML form.
I have a html file which select images from user's computer.code is given bellow
I have a html file which select images from user's computer.code is given bellow
I am trying to create simple user registration form. I have an index.html file
I have a asp.net form with 5 HTML file input controls with runat=server and
I have a Html form. I want to get the file containing posted form's
We have got an extjs 3.1.1 form with file upload field ( http://www.extjs.com/deploy/dev/examples/form/file-upload.html from
I have a following problem, I have HTML form that uploads a file with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.