doudichu1358 2011-04-12 20:40
浏览 152
已采纳

JQuery Mobile登录页面

I am looking for a sinple jQuery Mobile login page sample. It needs to use MySQL too. I have googled and found this: Sample Found but it's too involved and I need something more simple. Can anyone help please?

  • 写回答

2条回答 默认 最新

  • duanli0162 2011-04-12 21:25
    关注

    Any credentials-based authentication involving a database will be a bit involved but there are things you can do to make it simple without too great a cost on security. One thing to consider is to make this as simple as possible by removing AJAX from the equation. A simple form that posts back the data rather than trying to AJAX-load the results will simplify your project a bit.

    Here's a very simple tutorial on making a login system using PHP and mySQL: http://www.phpeasystep.com/phptu/6.html

    If you can get away with not having a form, you should look into doing a simple .htaccess file with server-side Basic Authentication. No database required for this solution. This would put up a form that asks the person to put in a username an password but wouldn't be styled like your website. If they fail to login, you can kick them to the page of your choice. Otherwise you would show them the website. Here is a link talking about how to set this on the server and generate the needed files: http://tools.dynamicdrive.com/password/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b