![]() |
Need some help, and i have got some questions to ask as well.
So i will start of with saying thank you to everyone who has helped me before and who will help out, and i will try to help out as much as i can. So for the question part. i was thinking what is the best way to secure an account i mean password and so on.
like password salt? and stuff like that, i am still a bit fuzzy on the part where you secure the password. So all the help i can get is really appreciated. And then i would need some help on why this is not working i get this print "You're account was made!"; but noting appears in the db. PHP Code:
Thank you in advance! Code;Freek! :-$ |
Hi cf,
your if-else block at the regex-thingy says: If the regex matches, do something in your Db, if not, output 'Your account was made'. I don't know if that is what you want your script to do. Please filter your $_POST values, don't use them unfiltered in SQL statements. It's very dangerous(SQL-Injection). Greetings, Alex |
A good thing for storing passwords is to encrypt them and to use a salt with that like you said. An example would be
Quote:
|
awuehr, filter whit what?
|
You could try mysql_real_escape_string. Although if you wanted to take it further, you could filter depending on what you're expecting the data to be. Integer, string, et cetera...
|
i tried this but it wont work ? should i maybe do a check if the preg_match is valid by turning it into a var, and then running a check or how should i do it :S
Thank you! PHP Code:
|
i tried this, but it wont input anything to the db :S
PHP Code:
|
i made a new pattern but i get ? insted of @ ;/
help.. PHP Code:
|
omg, what a noob mistake ! ;P forgot to set a set on the db
working now thank you ;) |
why do i get error on this ?
PHP Code:
|
using % instead of $ if those are variables.
|
don't follow :S
|
Fixed Thank you!
|
| All times are GMT. The time now is 03:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0