Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/07/2003, 16:06
Avatar de Thebrain
Thebrain
 
Fecha de Ingreso: enero-2003
Ubicación: Santiasco
Mensajes: 100
Antigüedad: 21 años, 3 meses
Puntos: 0
a ver si entiendo

tu quieres saber si el numero que ingresa una persona es mayor o menor a 20?? y esto a travez de un form...

eso es lo que entiendo y habria que arreglar unas cosillas en el codigo
Código:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">

<cfset Price1="10">

<form name="frmestruturas_condiconais" method="post" action="condicao_testada.cfm">
<p align="center"><b><i><font size="+4" face="Comic Sans MS">Condição if then</font></i></b></p>
<p>
<input type="hidden" name="Price" value="#Price1#">
<input type="text" name="Price2">
<input type="submit" name="cmdTesta" value="Testar Números &gt;10">
</p>
<cfoutput> 
<!---Condição para teste de números maiores que 10--->
<cfif #form.Price2# greater than or equal to 10>

<h3>The Price is greater than #Price#</h3>
<cfelse>
<h3>The Price is less than #Price#</h3>

</cfif>
</form>
</cfoutput>
</body>
</html>
ahora me acabo de dar cuenta que tu pregunta es como hacerlo para no utilizar el cfset
Código:
<input type="hidden" name="Price" value="#Price1#">
eso cambialo a
Código:
<input type="hidden" name="Price" value="20">
__________________
I'm sick of all you hypocrites holding me at bay And I don't need your sympathy to get me through the day.Dream Theater - A Change of Seasons

http://www.dreamtheater.cl

Última edición por Thebrain; 11/07/2003 a las 16:09