App with backend DB (mySQL/PHP) – Login problems
Hi everyone, I’ve been a professional programmer for 20 years, working with large Enterprise systems, and now I’ve deiced to start program APPS using MobiOne.
The design fase seems very simple but exchanging data with a backend system gives me problems.
I’ve made a page with a form and I’m trying to parse email and password to the backend system but nothing happens!
Basically I send a email and pwd to the webservice and check if user exists and the pwd is correct.
If email or pwd are not correct it generate a json file (login.json) looking like this: “{“root”:[{“login”:{“result”:”login failed”}}]}”
In that case I need the app to show a warning on the login screen.
If the user exist and the pwd is correct, I need the data in a (login.json) looks like this:
“{“root”:[{“login”:{“id”:”2″,”email”:”my@email.com”,”pwd”:”MyPass”,”gender”:”Male”,”dob”:”1968-09-18″,”category”:”1″,”customer_type”:”1″,”push”:”YES”,”max_dis”:”50000″,”created”:”2012-07-01 00:00:00″,”updated”:”2013-08-13 10:30:05″,”lngd”:””,”ltd”:””,”dev_token”:””,”badge”:”0″,”veri_key”:”1jopw”,”verified”:”1″,”device_os”:””,”app_version”:””,”last_login”:”2013-09-07 09:26:13″,”category1″:”All”,”customer_type1″:”All”}}]}”
In that case I need the app to go to a new page and import data from another json file…
And that’s my big problem – I do not have a clue how to do that, and I’ve not been able to google it…
Another question I have is – what Page Architecture should I choose for an app like this?
Default, Local Web Page (static) or Remote Web Page (AJAX)?
Any help would e appreciated 🙂
Thanks