Software Archive
Read-only legacy content

Login Form

Jeff_M_
Beginner
897 Views

Hi Everyone,

 Please excuse me as I am new to the XDK. I saw in the sample files the loginview template. However I am looking for a bit more. I would like if possible to see a full example with the code to do the actual login and registration. I have never written this type of code so I am unsure of what it takes to create a fully working login / registration page that will validate against a mysql database.

All help is appreciated.

Jeff

0 Kudos
2 Replies
Elroy_A_Intel
Employee
897 Views

Within the XDK, App Preview(Test) or the build options(Build), you are required to include a reference to xhr.js script in the head to allow for AJAX post and get functions to work.

<head>
.....
<script src="xhr.js"></script>
</head>
.......
 

Here are a few examples of AJAX-MySQL related applications:
1. http://www.91weblessons.com/php-ajax-login-validation-tutorial/
2. http://www.w3schools.com/php/php_ajax_database.asp
3. http://www.tizag.com/ajaxTutorial/ajax-mysql-database.php

0 Kudos
Jeff_M_
Beginner
897 Views

Thank you for taking the time to reply. I will be  checking these out !

Jeff

0 Kudos
Reply