962 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
webdesigndeluxe says

Hey everyone, here’s the error I’m getting:

Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /home/content/a/l/e/alexmoore7/html/shuttercloud/register.php on line 33

Here is line 30-34:

$regexp = "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$"; if(!preg_match($regexp, $registerEmail)){

Thanks!

962 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
webdesigndeluxe says

Nobody?

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says
2529 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+11 more
JeffreyWay says
962 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
webdesigndeluxe says

Ah it was working just a forgotten period. That’ll always screw the whole thing up :D

Thanks Jeffrey!

Also one more thing, kinda still learning but am getting there :)

How do I md5 this password? I want a hash in the mysql table, but am not sure the correct way to do that. Here is the insert line:

$res2 = mysql_query("INSERT INTO tbl_user (email, password) VALUES('".$registerEmail."','".$registerPassword."')");
499 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in Canada
+2 more
TutelageSystems says

How do I md5 this password? I want a hash in the mysql table, but am not sure the correct way to do that. Here is the insert line:

$res2 = mysql_query("INSERT INTO tbl_user (email, password) VALUES('".$registerEmail."','".$registerPassword."')");

Two different ways (same results)

$registerPassword = md5($registerPassword);
$res2 = mysql_query("INSERT INTO tbl_user (email, password) VALUES('".$registerEmail."','".$registerPassword."')");

or

$res2 = mysql_query("INSERT INTO tbl_user (email, password) VALUES('".$registerEmail."','". md5($registerPassword) ."')");
962 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
webdesigndeluxe says

Weird, no matter what password I type in, I’m always getting the same hash in my table:

3c2ef8fb58d5a42413bfa513921bac43

Any ideas why? I used your second solution above. So I was doing it right, it’s just the same hash is being used no matter what I type in. Any thoughts?

13 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+4 more
ozonostudio says
Weird, no matter what password I type in, I’m always getting the same hash in my table:

3c2ef8fb58d5a42413bfa513921bac43

Any ideas why? I used your second solution above. So I was doing it right, it’s just the same hash is being used no matter what I type in. Any thoughts?

are you sure of that? is the same? don’t change any letter or number? are you testing online or in your computer?

320 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Had an item featured in an Envato Bundle
  • Has collected 1+ items on Envato Market
+2 more
jwmcpeak says

If the answer to ozonostudio’s question is yes, then the data being fed to md5() is the same every time. Make sure $registerPassword contains the data you expect it to contain.

962 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
webdesigndeluxe says

Yes I am sure. Every time I submit the form, no matter what data in the password field, always the exact hash. So what would be the cause of this then?

by
by
by
by
by
by