To moje początki z pehaczem więc proszę o wyrozumiałość. Próbuję przekazać ze strony index.php do strony auth.php dwie zmienne (authusername, password) ale oczywiście dostaję error.
auth.php
$username = $_POST['authusername']; $pass = $_POST['password']; require_once('/db.php'); }//else if(){ //zrobic sprawdzanie poprawnosci nicku i hasla //}
index.php
<form name="login" action="auth.php" method="post" onsubmit="return check(this)"> Podaj swój login: <input type="text" name="authusername" style="margin-left: 12px;"/></br> Podaj swoje hasło: <input type ="password" name="password"/> <input type="submit" name="SubMit" value="zaloguj"/> </form>
Otrzymywany error:
Notice: Undefined index: authusername in C:\Program Files\EasyPHP-12.1\www\my portable files\harc\auth.php on line 6
Dzięki, i jeszcze raz proszę o wyrozumiałość. Pozdrawiam, Przemek
