hi all,
I'm having trouble using PHP to evaluate a certain text from a form, and printing a certain text next to the form. the code I have is the following:
<td class="style1"><input name="Edad" type="text" id="Edad" size="3" maxlength="3" />
años
<?php
$num_edad = $_GET['Edad'];
if ($num_edad>61)
$edad = "GERIATRICO";
if ($num_edad>16 && $total<60)
$edad = "ADULTO";
if ($num_edad>15 && $total<2)
$edad = "NIÑO";
if ($num_edad>2)
$edad = "NEONATAL";
?><?php
echo ($edad);
?></td>
The problem is that it is not working, no matter what number I use in the form. And then, whatever the $edad result is, I need to use it in more forms....
Any ideas of what's wrong? How can I use the result later on?
I'm using Dreamweaver to build this site