|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
PHP :| Form Checking Problems
Hey guys
PHP Code:
PHP Code:
|
#2
|
||
|
You are MD5 hashing the passwords before you're validating the string lengths, so the $pass variable is greater than 5 when checked.
If repass is not set, either way MD5 hashing a NULL value will return d41d8cd98f00b204e9800998ecf8427e, so the variable is always set. Also, what templating engine are you using mate? I haven't ever bothered using one before but had just started looking into it.
__________________
Last edited by Capers; 01-27-2006 at 06:34 AM. |
#3
|
||
|
phemplate. I love it. It's simple, and not complicated as Smarty, yet works and loads fast. I don't really like smarty, and creating my own, I realized that it wasn't as advanced. So ici redirected me to phemplate.
I can't believe I forgot about the md5. sigh. lol. |
#4
|
||
|
Cheers mate.
Yeh i've made a similar mistake with MD5 before. Function i use for such debugging is var_dump()
__________________
Last edited by Capers; 01-27-2006 at 04:33 PM. |
#5
|
||
|
I'll have to research var_dump. Just barely got this strlen() in my head lol. Finally the funcitons and stuff are making sense to me
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
incorporate php file upload with MySQL form? | pauldridge | Tech Support | 1 | 06-16-2010 08:46 AM |
CSS and PHP Form Help! | Webviper2006 | Web design and Programming | 3 | 12-30-2005 04:49 PM |
problems installing PHP-clock | -Tigger- | Web design and Programming | 26 | 12-30-2005 03:33 PM |
Mail form w/out PHP | KoBrA | Web design and Programming | 6 | 06-01-2005 11:51 AM |
just checking | staffy bull | Sigs and Graphics | 3 | 08-05-2002 03:45 PM |