Error when making form
Posted: Wed Jan 18, 2006 12:51 pm
twigletmac | Please use
twigletmac | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I am trying to make a form to go on my website to gather info. But I keep getting this parse error See below for php info and error msg...
Parse error: parse error, unexpected '(' in /home/buyadblo/public_html/display_input.php on line 2Code: Select all
<?
if (($_POST[func] == "") ($_POST[text1] == ""))
{
header ("Location: generic_form.html" );
exit;
}
$result = $_POST[func] ($_POST[text1]);
?>
<HTML>
<HEAD>
<TITLE>Generic Input Results</TITLE>
</HEAD>
<BODY>
<? echo "$result"; ?>
<P><a href="generic_form.html">Go Again!</a></p>
</BODY>
</HTML>Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]