Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You are throwing two different things in one jar here.</p> <ul> <li>PHP runs on the Server and does not interact with your Browser.</li> <li>JavaScript runs "in your Browser" and can interact with it.</li> </ul> <p>Since this seams like you want to create a simple Log-In Script, why don't you use a normal Hyperlink to your PHP-site which offers a form to log in. There are <a href="http://www.google.com/search?q=php%20login&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:unofficial&amp;client=firefox-a#pq=php%20login&amp;hl=en&amp;cp=4&amp;gs_id=2a&amp;xhr=t&amp;q=php%20login%20session&amp;qe=cGhwIA&amp;qesig=R1PtHJTXDoSsDjwL_RKRig&amp;pkc=AFgZ2tnuNpaF3jxK-e_9kpWn55QZac7ER5qjJr9haD9Z2vdHei04F78tdRC4LQNRgaN-Zd0ChTBfMaJVDhA1Msw70oPpfDAuow&amp;pf=p&amp;sclient=psy&amp;client=firefox-a&amp;hs=ljB&amp;rls=org.mozilla:en-US:unofficial&amp;source=hp&amp;pbx=1&amp;oq=php%20&amp;aq=0e&amp;aqi=g-e2g3&amp;aql=&amp;gs_sm=&amp;gs_upl=&amp;bav=on.2,or.r_gc.r_pw.&amp;fp=e20edcaf1ac3dc53&amp;biw=1280&amp;bih=865&amp;bs=1" rel="nofollow noreferrer">hundreds of tutorials</a> out there which show you the way.</p> <p>Also, what you "created" is not save to use, since you're using PHP to write a JavaScript function. The JavaScript-code and your password (as you simply add it to the JS-function in clear text) can be read by simply displaying the sites source-code.</p> <p>Also, using something like <code>onclick="$Logged++"</code> to increase a PHP-Variable does not work. Again, PHP runs on the server and not in your Browser.</p> <p>If you seriously want to start with PHP (and create secure and save pages) you should conceder reading a whole book for the startup. A great collection can be found <a href="https://stackoverflow.com/questions/90924/what-is-the-best-php-programming-book">here</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload