<html>
<head>
<title>Testseite</title>
</head>
<body>
<?
$test = $_POST["wasjetzt"];
if ($test == "LOS") {
echo "Du hast folgendes eingegeben: ".$_POST["test123"]."<br/>";
}
?>
<br/>
<br/>
<br/>
<form enctype="multipart/form-data" name="formname" action="test.php" method="POST">
<table border="0" align="center"><tr><td>
<input type="hidden" name="wasjetzt" value="LOS">
Hier irgendwas eingeben: <input type="text" name="test123">
<br/>
<br/>
Und dann <input type="submit" value="Abschicken">
</td></tr></table>
</form>
</body>
</html>
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
define('PMA_GRAB_GLOBALS_INCLUDED', 1);
if (!empty($_GET)) {
extract($_GET, EXTR_OVERWRITE);
} else if (!empty($HTTP_GET_VARS)) {
extract($HTTP_GET_VARS, EXTR_OVERWRITE);
} // end if
if (!empty($_POST)) {
extract($_POST, EXTR_OVERWRITE);
} else if (!empty($HTTP_POST_VARS)) {
extract($HTTP_POST_VARS, EXTR_OVERWRITE);
} // end if
if (!empty($_FILES)) {
while (list($name, $value) = each($_FILES)) {
$$name = $value['tmp_name'];
}
} else if (!empty($HTTP_POST_FILES)) {
while (list($name, $value) = each($HTTP_POST_FILES)) {
$$name = $value['tmp_name'];
}
} // end if
if (!empty($_SERVER) && isset($_SERVER['PHP_SELF'])) {
$PHP_SELF = $_SERVER['PHP_SELF'];
} else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['PHP_SELF'])) {
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
} // end if
// Securety fix: disallow accessing serious server files via "?goto="
if (isset($goto) && strpos(' ' . $goto, '/') > 0 && substr($goto, 0, 2) != './') {
unset($goto);
} // end if
// Strip slahes from $db / $table values
if (get_magic_quotes_gpc()) {
if (isset($db)) {
$db = stripslashes($db);
}
if (isset($table)) {
$table = stripslashes($table);
}
}
} //
<?
<?php
<html>
<head>
<title>Test</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
short_open_tag = On
<?
<?php
Hello World
<html>
<head>
<title>Testseite</title>
</head>
<body>
<?php
include_once ('Test2.php');
php?>
<?
...
<form method="post" action="">
Users browsing this forum: No registered users and 10 guests