Hi,
Firstly I would like to send my condolences to all American contributors, from the UK, in view of the terrible events last week.
Just started with PHP4 & I am trying out some scripts. I would like to create a front & back end form to test the value of 2 inputs & print the result. I have tried a number of combinations, but can only get the browser to echo the first option “yes” regardless of input. Any help please.
FRONT END SCRIPT
<HEAD>
<TITLE>Calculation Form</TITLE>
</HEAD>
<BODY>
<FORM METHOD="post" ACTION="LEWIS.php">
<p>Value 1: <INPUT TYPE="text" NAME="val1" SIZE=10></P>
<p>Value 2: <INPUT TYPE="text" NAME="val2" SIZE=10></P>
<P><input type="SUBMIT" NAME="SUBMIT" VALUE"Calculate"></P>
</FORM>
</BODY>
BACKEND SCRIPT
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<?
if ($Val1==$Val2){
echo "<P>yes</P>";}
else{
echo"<P>NO</P>";}
?>
</BODY>