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 7054283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:36:28+00:00 2026-05-28T03:36:28+00:00

all. I have a registration page that, well, registers users’ inputted data into the

  • 0

all. I have a registration page that, well, registers users’ inputted data into the MySQL database and in return can login. Simple.

But the code I use seems to not do anything at all. When I entered generic information in fields, the database has no new tables or information. (The table I’m trying to apply info to is called ‘users’.) In fact, none of the checks appear either (such as you entered no password etc.)

You can view the full code here. The database info I’m connecting to goes as follows:
Database: mk7
Username: root
Password:
Host: localhost
Table to apply: users

Also, I heard that the method I am using is prone to SQL Injection and no password hashing/salting. If someone could help me improve/add this to my code, I will greatly appreciate it. I am a bit of a novice in writing PHP, but I have nearly complete understanding of what’s going on.

  • 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-05-28T03:36:29+00:00Added an answer on May 28, 2026 at 3:36 am

    change

    switch($act) to switch($_REQUEST['act'])
    

    and tell us whats happens. Yes the code is messy and prone to alot of attacks, not just sql injection. If you want some secure code, DM me.

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

Sidebar

Related Questions

I have a database with Points of Interest that all have an address. I
I am writing a simple php registration page using MySQL as the database. I
I have a registration page that receives tokens ad parse them and login the
I have a simple registration page that validates if a user is already taken.
I'm using Zend_Form with a registration page. I have a checkbox, that if checked,
I have a registration form leveraging xVal to handle all validation on the form.
I have three classes that all have a static function called 'create'. I would
I have a bunch of projects in parallel subdirectories that all have etc/lighttpd.conf files.
I have a MFC dialog with 32 CComboBoxes on it that all have the
So I have a form with lots of controls that all have a tab

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.