Jump to content

Registration Form


dminder

Recommended Posts

Is there any security risks putting all of your code for a registration process on one page? Including:

  1. Database Connection Info
  2. MySQL Statements
  3. Inserts/Updates to Table(s)
  4. validation
  5. email generation
  6. hashing of password

I am just kind of stuck if I should have one php file that contains all of my code for my site, including registration, logins, etc. or if it is better to break them down by page and work it that way....Thanks in advance!

Link to comment
Share on other sites

There aren't any more security risks with code on one page then there would be with code on multiple pages. It will be difficult to maintain if you have your entire site in a single file though.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...