login form

I’m having trouble understanding login with server side authentication and hope that you can point me in the right direction.

Below I have provided a dump of the form.xml file so as to give you an idea of the functions needed.

Many thanks,

Mettlesome.

<?xml version="1.0" encoding="UTF-8"?>
<item type="fieldset" name="forgot" label="Forgot login" inputWidth="auto">
<item type="input" name="email" label="Email" position="label-top"/>
    <item type="button" name="remind" value="Remind Me"/>
</item>

<item type="fieldset" name="register" label="Register" inputWidth="auto">
   <item type="input" name="email" label="Email" position="label-top"/>
   <item type="input" name="name" label="Username" position="label-top"/>
   <item type="button" name="reg" value="Register"/>
</item>

You can to familiarize with our samples of using form:
dhtmlx.com/docs/products/dht … s/06_data/

Hi

basic logic:

  • user entered login/pwd details
  • you call myForm.send(…, callback)
  • server have &login=username&pwd=1234
  • you do auth on server and return info if user was logged or not
  • function callback(){ check response here }
  • if login was good - document.location.href=“newpage.html” otherwise show an alert with error

All working and I learnt a lot in the process. Much obliged.