Validating data php compare internet dating sites

EDIT: when it returns the data to the j Query script, this should happen: if yes: start session, redirect to page2with session started.else if act: write in a field that the account is not activated. The thing is, that when I try to write the correct e-mail and password - it continues to write : "email and password didn't match" instead of redirecting..Of course, validating user input is really important for dynamic websites. In this tutorial, you will learn about 4 major tasks. The awesome language, PHP has numerous in-built functions to validate user inputs.You can improve that class with your knowledge and make it more functional according to your needs.If you have any kind of question to ask, comment below. So, every user who visits this page will be redirected to function to validate variables.We can set it's second parameter to different values and use it to validate emails, URLs, integers, booleans, etc.

After deleting the old code it worked, but then I found something else to change, and that is in the PDO script when it is validating it says: $sql - $conn_business-prepare( "SELECT email, password FROM members WHERE email='".$email."'"); and then I just changed the '-' after $sql to '=' and now, everything works perfectly... This method can be used to validate any integer value such as a primary integer key (user Id, group Id, etc.) in database, timestamp, etc.The advantage of using this function is, it converts string numbers ( function./^(19[0-9]|2[0-9])\-(0[1-9]|1[0-2])\-(0[1-9]|1[0-9]|2[0-9]|3[0-1])((T|\s)(0[0-9]|1[0-9]|2[0-3])\:(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])\:(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])((\ |\.)[\d ])? I have tested that my DB login informations is correctly programmed for PDO.. session_start(); require_once("connect.php"); //get the posted values $email=htmlspecialchars($_POST['email'], ENT_QUOTES); $pass=md5($_POST['psw']); //now validating the username and password $sql="SELECT email, password members WHERE email='".$email."'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $sql2="SELECT * FROM members WHERE email='".$email."'"; $result2=mysql_query($sql2); $row2=mysql_fetch_array($result2); $act = $row2['activated']; //if username exists if(mysql_num_rows($result) Does anybody know, what I have done wrong? It is called through AJAX and return data based on 'no', 'yes' and 'act' that tells the AJAX/j Query script what to do..

Leave a Reply

  1. lonely wife searth dating 27-Nov-2020 05:52

    If you want to talk to someone or feel like talking to a strangers on a free chat app.

  2. dating divorcees children 24-May-2020 08:21

    Call Forwarding - Busy or No Answer Automatically forward your calls when your line is busy or you can’t answer the phone.

  3. 100percent dating site any where 02-Jun-2020 09:33

    Get ready to video chat with the hottest adult porn stars!

  4. online dating sites fraud 10-Feb-2020 07:54

    Yes, personal video live chat with a sexy, beautiful and smart girl can give you the real relax.

  5. linda evangelista dating 10-Jul-2020 10:02

    Converting a community into paying customers is considerably harder.

  6. Sydney sex dating phone lines 11-Sep-2019 09:07

    It was hard to believe that Nintendo would take such risks with a completely new device, yet the Nintendo DS had such advanced capabilities as access to the Internet with Wi-Fi, and a touchscreen.