Ho messo in rete queste due pagine:
-> index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
</head>
<body>
<form method="get" action="text.php">
<label>
Autore
<input type="text" name="autore" />
</label>
<label>
<input type="submit" value="Invia" />
</label>
</form>
</body>
</html>
-> text.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
</head>
<body>
Autore scelto:
<php
print $autore;
?>
la pagina index passa la variabile ma alla pagina text.php compare solo Autore scelto:
grazie