Ajax session Login to refresh the data

Source: Internet
Author: User
Tags echo date
Php


  "+json.email+", congratulations on your successful login!

You this is the first "+json.login_counts+" login to this site.

The last time to log on to this site is:"+json.login_time+"

Exit

"; $ ("#login"). Append ($ (' div ')); }else{//$ ("#msg"). Remove (); $ ('). HTML (json.msg). CSS ("Color", "#999"). AppendTo ('. Help-block '). FadeOut (2000); return false; } } }); }); $ ("#logout"). Bind (' click ', Function () {$.post ("Login.php?action=logout", Function (msg) {if (msg==1) { $ ("#result"). Remove (); var div = 'Email Password no account click hereCloseLogin'; $ ("#login"). Append (div); } }); });}); "' index.php '

, congratulations on your successful login!

This is The first time you have logged on to this site.

The last time you landed on this site is:

Exit

Email Password no account click here Close Login

Reply content:

Php


  "+json.email+", congratulations on your successful login!

You this is the first "+json.login_counts+" login to this site.

The last time to log on to this site is:"+json.login_time+"

Exit

"; $ ("#login"). Append ($ (' div ')); }else{//$ ("#msg"). Remove (); $ ('). HTML (json.msg). CSS ("Color", "#999"). AppendTo ('. Help-block '). FadeOut (2000); return false; } } }); }); $ ("#logout"). Bind (' click ', Function () {$.post ("Login.php?action=logout", Function (msg) {if (msg==1) { $ ("#result"). Remove (); var div = 'Email Password no account click hereCloseLogin'; $ ("#login"). Append (div); } }); });}); "' index.php '

, congratulations on your successful login!

This is The first time you have logged on to this site.

The last time you landed on this site is:

Exit

Email Password no account click here Close Login

The code is too broken, the database connection, the logic, the Html,js are all written together.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.