V
vill k
Guest
parse error on 2nd line...
<?
if (($_POST[text1] == "") || ($_POST(func] == "")) {
header(Location: "generic_form.html");
exit;
}
$result = $_POST[func]($_POST[text1])
?>
<html>
<head>
<title>Generic input forms</title>
</head>
<body>
<?
echo "$result";
?>
<p><a href="generic_form.html">Go again!</a></p>
</body>
</html>
Please help i can be bothered to retype whole thing!!
Yeah it worked, but i cant see what you changed??!!!!
ahh yeah now i see ( to [ good spot m8 thanks
h yeah i now got error on line 6 but i cant see! i have addded a ; already
<?
if (($_POST[text1] == "") || ($_POST(func] == "")) {
header(Location: "generic_form.html");
exit;
}
$result = $_POST[func]($_POST[text1])
?>
<html>
<head>
<title>Generic input forms</title>
</head>
<body>
<?
echo "$result";
?>
<p><a href="generic_form.html">Go again!</a></p>
</body>
</html>
Please help i can be bothered to retype whole thing!!
Yeah it worked, but i cant see what you changed??!!!!
ahh yeah now i see ( to [ good spot m8 thanks
h yeah i now got error on line 6 but i cant see! i have addded a ; already