hola de nuevo ahora tengo otro problema pero para no hacer tantos nuevos temas aver si me pueden segir ayudando
el problema es este error
Notice: Undefined index: username in C:\wamp\www\register\index.php on line 12
Notice: Undefined index: password in C:\wamp\www\register\index.php on line 13
aqui el codigo index.php
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>registering</title>
</head>
<body>
<?php
// put your code here
@session_start();
$username = $_SESSION['username'];
$password = $_SESSION['password'];
if(!$username && !$password){
echo "welcome guest! <br> <a href=login.php>Login</a> | <a href=register.php>Register</a>";
}
else
{
echo "welcome ".$username." (<a href=logout.php>Logout</a>)";
}
?>
</body>
</html>
no se porque me da esos errores
y en register.php
este error
Notice: Undefined variable: act in C:\wamp\www\register\register.php on line 99
se que no identifica la variable $act pero no se como repararlo
Código PHP:
}
switch($act){
default;
register_form();
break;
case 'register'; //segun el error dice aqui linea 99
register();
break;
}
y en login.php me dice de la misma variable $act
como le hago para que funcione esta variable?