Il be checking in to that tomorow, and i will report back to u!
Thanx for the help. <img src="smileys/smiley32.gif" border="0" align="middle" />
Thanks for the Idea, I made it. I can login with user and admin account.
Develop games in your browser. Powerful, performant & highly capable.
I tried to run your loginsystem on my desktop browser. And notice that the error message is not showing when I input wrong account. How to fix this?
edited: What I am trying to say is, the error will not show if I open in localhost/loginsystem but in localhost:50000 it will open.
Hi all, I'm a newbie in construct 2. Now, I'm using construct 2 as main project for my thesis, because my thesis is about developing cloud gaming for windows 8. I'm so thankful that I found this article about login system before start the game. I already downloaded the .capx and tried to do register, it worked, but I have to move the "system -> go to login layout" in ajax "on register completed" event to "mouse -> on object clicked (register)" event to prevent the register error. and when I tried to call the user and pass from database in login page, it didn't work. I don't know how. Do you have any solution? I already changed the URL too. thanks guys :)
I think you need to post your event here. So we know what is the problem on your events.
hope you can help it <img src="smileys/smiley19.gif" border="0" align="middle" />
I see what you mean. I have the same error on my end. I think I have a way of fixing it by assigning the error given by the php else statement. Will post when I have it done.
Your login event is duplicating the ajax login call.
Basically you have the system making an ajax request each time the ajax request is completed causing it to endlessly loop.
(ie) Run ajax request -> on completed -> run ajax request -> on completed...
and on and on until infinity.
Remove the second Ajax request under the event On Login Completed. ( Ajax -> localhost/avibppt/test/login.php UsernameTxt2.Text & "&password=" & PasswordTxt2.Text)
You have the same issue on the register event. Remove the ajax request under on ajax completed.
okay, I'll try it, thanks for your solution <img src="smileys/smiley4.gif" border="0" align="middle" />
Sorry, there is wrong picture for the register event on the.capx, this is the right one
I have to disabled the "ajax -> on register completed/ on register error" as if the register is successful, if I don't do toggle disabled, it will show the "ajax -> on register error"
Here is the fix.
Step 1. Modify your login event sheet to look like this:
<img src="https://dl.dropbox.com/u/44787590/logineventfix.jpg" border="0">
login event fix
Step 2: Replace login.php with this version: login.php
Should work like a charm. <img src="smileys/smiley2.gif" border="0" align="middle">
It doesn't work :(
Did you make sure to modify the sql info to match your database?
Its not working on my side. I change the login.php and also the events but its not working.