Was muß ich ändern, damit das ganze auch im Browser geht?
- Code: Select all
<html>
<head>
<title>test</title>
</head>
<body>
<h1>MySQL - Benutzerschnittstelle</h1>
<FORM METHOD = "post" ACTION = "test2.php">
User: <INPUT TYPE = "text" NAME = "user" SIZE = "20"><BR>
Passwort: <INPUT TYPE = "text" NAME = "pw" SIZE = "20"><BR>
Host: <INPUT TYPE = "text" NAME = "host" SIZE = "20"><BR>
<TEXTAREA NAME = "text" ROWS = "10" COLS = "40"></TEXTAREA><BR>
<INPUT TYPE = "submit" VALUE = "Verbinden" SIZE = "20">
</FORM>
</body>
</html>
- Code: Select all
<html>
<head>
<title>test_php</title>
</head>
<body>
<?php
$user = htmlentities(addslashes(rtrim($_POST["user"])));
$pw = htmlentities(addslashes(rtrim($_POST["pw"])));
$host = htmlentities(addslashes(rtrim($_POST["host"])));
echo("Ausgabe: $user<br> $pw<br> $host");
?>
</body>
</html>