If Elseif Else Help
Posted: Thu Apr 29, 2010 10:19 pm
What am I doing wrong with this if elseif else statement? I am needing 1 of 3 things to happen
either give an input box if the default value of 0.00 is in place, echo a value previously entered value if not = to "Unused" or just keep the value as "Unused" if it already is such.
either give an input box if the default value of 0.00 is in place, echo a value previously entered value if not = to "Unused" or just keep the value as "Unused" if it already is such.
Code: Select all
<?php
$secret = Unused; $holder = 0.00;
if ($holder == $amount1) { ?>
<td>$ <input type="text"name="amount1" value="" maxlength="12" onkeypress="return noenter()"</td>
<?php }elseif ($date1 != $secret)
{
echo '<td align="center">$' .$amount1. '</td>';
}else{
} ?>
<input type="hidden"name="amount1" value="Unused" maxlength="12" onkeypress="return noenter()">