Salve sono nuovo nell'ambito php, mi servirebbe un aiutino,
Eser2.php
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body >
<form align="center" id="user" method="get" ENCTYPE="multipart/form-data" action="http://sebeto.uniparthenope.it/~0108001016/Eser_php/Eser2/ControlloPW.php?<%=userName>" >
User:<input type="userName" id="userName" name="userName">
Pass:<input type="password" id="userPassword" name="userPassword">
<input type="submit" value="login" />
</form>
</body>
</html>
ControllaPW.php
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Controllo LOGIN !</title>
</head>
<body >
<p align="center">
<font size="30"> Controllo Username e Password !!! </font>
</p>
<?php
$apro= fopen("PW.xml", "w+");
fwrite($apro, "USERNAME");
fwrite($apro, "PASSWORD");
fclose($apro);
?>
</body>
</html>
come vedete "Eser2" richiama la pagina ControlloPW.php, la seguente pagina riceve 2 "attributi un username e una password", il mo scopo è quello di recuperare questi due parametri e salvarle in un file xml, ora la difficoltà che ho sta appunto nel recuperare l'username e la password, in modo da salvarla nel file xml, senza l'utilizzo di un database.
qualcuno mi può aiutare
thx a tutti