{"id":165,"date":"2009-01-27T05:48:51","date_gmt":"2009-01-26T21:48:51","guid":{"rendered":"https:\/\/www.dremi.info\/?p=78"},"modified":"2009-01-27T05:48:51","modified_gmt":"2009-01-26T21:48:51","slug":"drelogin-v10-a-simple-jquery-php-login","status":"publish","type":"post","link":"https:\/\/www.dremi.info\/articles\/drelogin-v10-a-simple-jquery-php-login.html","title":{"rendered":"dreLogin V.1.0 – A Simple jQuery+ PHP Login"},"content":{"rendered":"\n

\"\"It is a simple engine for the login form handler. I’ve been making it for a long time, but this is the first time it has been published. Created using PHP and the ajax framework using jQuery, equipped with the jQuery Form Plugin.<\/p>\n

 <\/div>\n

dreLogin V.1.0<\/h2>\n

Even though it once existed, the jQuery login form has a difference, which is that the programming structure is easier to understand. Sessions are not registered with a merge array, so it is easier to call their values while on the admin page. No need to use extra JS too much, because it has fully adopted the functionalities provided by the jQuery Form Plugin. Which allows us to capture variables in the Ajax HTTP Response with the Value $ _POST \/ $ _GET
What I mean without the need to use extra JS is excessive, with jQuery Form we don’t need to use JS Extra to handle Message Responses, in the form of “empty username”, wrong password, etc. All of them can be used as dynamic variables in the PHP form action.<\/p>\n\n

Use and modification is subject to Creative Common Laws License 3:
http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/
The use of dreLogin is very simple, first open config.php which is in the outermost directory of the RAR package, change the settings according to the web server:<\/p>\n

\n
\n&lt;?php\n\/*\n* dreLogin V.1.0\n*\n* Copyright (c) 2009 Hairul Azami [a.k.a dr.emi] (www.dremi.info)\n* Licensed under the creativecommons Attribution-Share Alike 3.0 Unported\n* http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\n* more info of licenses: https:\/\/www.dremi.info\/wwwtips.php?cID=72\n*\n* Date: Jan 27 2009\n*\/\nif(!defined('_VALID_ACCESS')) die('direct access is not allowed.');\n# config system\ndefine(&quot;_HOST&quot;, &quot;localhost&quot;);\ndefine(&quot;_USER&quot;, &quot;dremi&quot;);\ndefine(&quot;_PASS&quot;, &quot;terusberjuang&quot;);\ndefine(&quot;_DBASE&quot;, &quot;ujicoba&quot;);\ndefine(&quot;_PATH&quot;, &quot;\/dreLogin1\/&quot;);\ndefine(&quot;_ADMIN&quot;, &quot;\/dreLogin1\/&quot;);\n?&gt;\n<\/pre><\/pre>\n


Penjelasan: _PATH merupakan base path untuk folder dreLogin
sedangkan _ADMIN merupakan path target setelah user berhasil login<\/p>\n\n\n\n

<\/p>\n

Share on Facebook<\/a><\/p>","protected":false},"excerpt":{"rendered":"

It is a simple engine for the login form handler. I’ve been making it for a long time, but this is the first time it has been published. Created using PHP and the ajax framework using jQuery, equipped with the jQuery Form Plugin. Share on Facebook<\/p>\n

Share on Facebook<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[136,147,214,220,228,287,295],"_links":{"self":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/posts\/165"}],"collection":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":0,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dremi.info\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}