Added: 3 years ago
From: thenewboston
Views: 37,906
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (41)

Sign In or Sign Up now to post a comment!
  • btw correct if statement is: if(!eregi("[^A-Za-z0-9]",$test­) ... boston fails to nest his ( and ) right

  • @Ric0tjuh24 you have three parentheses, that makes no sense. It goes

    if ( !eregi ( "[^A-Za-z0-9]", $test ) )

  • NOOO for the 10th time, your source code is NOT on the site! shame

  • This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

  • Hey. Just wanna say that I think that your code segment is incorrect. The one that checks if the username is alphanumeric.

  • great vid

  • alphanumeric =3

  • EXTREMELY IMPORTANT!!! REPLACE the whole !eregi...... function with this,

    so the statement looks like:

    if(!preg_match('/[^A-Za-z0-9]/­i' , $test)){

    statements.....

    }

  • @SnijdersMax can you please explain me why ^^

    thank you very much!

  • @lpperalta1

    This is becuase eregi() is deprecated in newer versions of PHP, so it's wiser to use the function preg_match because that one will stay around longer...in other words, if you upgrade your php version, eregi() won't work anymore. If you want your php scripts to be flexible and not crash after you updated php, this is the way to go

  • @SnijdersMax Thank you so much again

    

  • It took me a long time to figure that out, so i figured i'd just share it here

  • i can't find the source code in your site :(

  • Wow on the embarassing part...just wow.

  • awesome but u shouldve just called the variable usernametest

  • your voice keeps changing...

  • @coolcam262 Would be boring if he keeps the same tone for 10 minutes,

    just like my teacher.

  • why let the people click and click and click if errors appears in form.

    isn't better to check username availability with ajax on blur? i am sure is much better.

  • @xbugster I also want to warn guys who just learning to not use eregi anymore because is deprecated from php 5.3.0. use preg_match()

  • Bucky, where is this forum???!!! To tell you the truth i can find it on your web page.... i would appreciate it if you could tell me :) btw nice tutotrials :) ^_^

  • Hi! Great tutorials thanks heaps ...

    just a quick comment: the ereg expression is deprecated and removed from recent php versions use preg_match instead

  • There's an error in the video:

    have a look at the position of the first closing bracket.

    correct is:

    if(!eregi("([^A-Za-z0-9])",$te­st))

  • Comment removed

  • @relysaa Also. $_POST[username] should be $_POST['username'] if I'm correct.

  • your site is off?

  • Awesome work man, it really helped.

  • LOL! "I don't have any thing embarrassing in my history do I?"

    Someone has a guilty mind. :).

  • @Zombiedevice he's refering to his like 10th php vid where he had uporn in his history lol

  • Much.

  • what's the difference between ' and " in PHP?

  • Great tutorials but when i got to browse website i get following message.

    "hey im wokring on this site"

    Can anyboy advise please.

  • it means he's working on the site. lol

  • to what site? bucky's site? ^^ he's updated it...

  • can you show people how to make forum

  • lol "imberassing" rofl

  • awesome work man.

    Thanks for the HQ code willugoupordown

  • Add &fmt=18 to the end of the URL in the Address Bar for High Quality.

  • thanks for the tip man,really helped

  • oo didn't know you had these tutorials, im going to start from 1 :) btw your tutorials are awesome, you make a complete idiot seem somewhat smart :D

  • Your PHP tutorials are always welcome.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more