Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/09/2005, 17:22
sergiold
 
Fecha de Ingreso: octubre-2004
Mensajes: 751
Antigüedad: 19 años, 6 meses
Puntos: 4
Pues no se si aparte de que el boton cambie quieres que se envien datos pero un código que creo que funcionaria sería así:

Código HTML:
<html>
<head>
<title>Formulario</title>
</head>
<body>
<?
$opcion=$_GET['opcion'];
if(empty($opcion)){
   $opcion="ascendente";
}
if($opcion=="ascendente"){
   $opcion2="descendente";
}else{
   $opcion2="ascendente";
}
?>
<form method="post" action"?opcion=<? echo $opcion2;?>">
<input type="text" name="texto"><br>
<input type="submit" value"<? echo $opcion;?>">
</form>
</body>
</html> 
A ver si no me equivoco y funciona... espero que te sirva!
Saludos,
__________________
sergiold