Related Posts

32 Comments

  1. hello thank you for the vid, i am looking for a production level form
    that actually has email and repeat email because poeple make errors and
    the email could be non existenet or spelling erros..thxz Lisa

  2. hello thank you for the vid, i am looking for a production level form
    that actually has email and repeat email because poeple make errors and
    the email could be non existenet or spelling erros..thxz Lisa

  3. I guess this is one way to use it but how in your other videos on php oop login ,how do you include a rule to ask a user that they need to include certain symbols such as @? Here is part of my code:

    <?php
    require_once 'core/init.php'; // we have autoloader here

    if(Input::exists()) {
    if(Token::check(Input::get('token'))) {

    $validate = new Validate();
    $validation = $validate->check($_POST, array(
    'username' => array(
    'required' => true,
    'min' => 2,
    'max' =>20,
    'unique' => 'users'
    ),
    'password' => array(
    'required' => true,
    'min' => 6

    ),
    'password_again' => array(
    'required' => true,
    'matches' => 'password'
    ),
    'name' => array(
    'required' => true,
    'min' => 2,
    'max' => 50
    ),

    'email' => array(
    'required' => true,
    'min' => 2,
    'max' =>30,

    )
    ));

  4. Fatal error: Function name must be a string in E:xampphtdocsmacindex.php on line 146
    which is
    if (isset($_POST['user_email']) == true && $empty($_POST['user_email']) == false)
    help me pls

  5. Alex: Thanks for the great tutorial !! My students enjoyed it – however PHP 5's Built-in Filter Function is not turned-on/activated/allowed at our College'sStudent Shared Web Host. It makes a good discussion, by comparing 2 servers running PHP5 students see (using PHPinfo) if one server does not allow a built-in function, you cannot use that function on that server. It reinforces Testing, Research (PHPinfo), and understanding permissions & setup. Many Thanks – from a College Instructor!

  6. Others have pointed out that == true and == false are not necessary, but it should be noted that the script is more efficient without them. I would argue it is better practice to not include them (it creates twice as much evaluation for php not to mention that php needlessly has to read the extra text). If you're worried about not knowing what the script is doing, add a comment (which php can ignore altogether). On the whole, nice simple checker 😉

  7. @ChadDeLange the problem with input type=email is that it's HTML5 exclusive and won't work on suck ass browsers like IE not even on the latest IE9, accordinly to quirksmode what's a pitty because it saved us the trouble of client side validation…

  8. @mezigpo Hello, type=email is a Good way to validate email, but using somthing like firebug or inspect element You can just change the type to text, using the method in the video, it's validated by the server not the browser

  9. @jimjimmy1995 01001001 00100000 01101010 01110101 01110011 01110100 00100000 01110101 01110011 01100101 01100100 00100000 01100001 00100000 01100011 01101111 01101110 01110110 01100101 01110010 01110100 01100101 01110010 00100000 00111010 01010000

  10. @Skiroid69 @jock0man @burnsy96
    010001100101010101000011010010110010000001011001010011110101010100100000010001110101010101011001010100110010110000100000011001000110111101101110001001110111010000100000011101000111001001111001001000000111010001101111001000000110001001100101001000000110001101101111011011110110110000100001

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress