I am kinda new to php and i have a small problem with this code i am trying to use.
<HTML>
<HEAD>
<TITLE>Math Tester</TITLE>
<BODY>
<?PHP
if(!isset($int1) && (!isset($int2))
{
?>
<form method="post" action="<?PHP_SELF?>"
<P> ENTER AN INTEGER<type="text" name="int1" size=4 maxlength=10></p>
<P> ENTER ANOTHER INTEGER<type="text" name="int2" size=4 maxlength=10></p>
<input type="submit" value="Add the numbers">
</form>
<? } ?>
<?PHP
else
{
$sum=$int1+$int2;
echo "<P> The sum is .$sum</P>";
}
?>
</BODY>
</HTML>
first it gives me an error saying that a { is out of place
second it won't return an answer when i click on the button.
If anyone can help it would be greatly appriciated
thanks