Page 2 of 2

Posted: Thu Jan 15, 2004 3:12 pm
by vigge89

Code: Select all

$u = (!empty($_POSTї'username']));
$p = (!empty($_POSTї'password']));
on those lines?
that's probably becuase you can't do that.
if that would work, and if $_POST['password'] would be empty, $p would be set to nothing....

Code: Select all

<?php

$u = $_POST['username'];
$p = $_POST['password'];

?>[/php

Posted: Thu Jan 15, 2004 3:39 pm
by pido
yea i can fill any user name and any password :lol: , sorry im so newbie... :oops: , but when i change it to

Code: Select all

$u = $_POST['username']; 
$p = $_POST['password'];
it give me an errors :? , it sayz

Undefined index: username
Undefined index: password


but i still can continue works evethough theres errors message in page

GOD PLZ HELP ME WITH THIS FU*** CODE !!!