Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/11/2012, 09:45
cesar15
 
Fecha de Ingreso: julio-2009
Mensajes: 118
Antigüedad: 14 años, 9 meses
Puntos: 2
Respuesta: cambiar la propiedad action de un form con php?

Las paginas que debo llamar dependiendo de lo que seleccione el empleado son:
imprimir-la-agenda-del-radiologo.php

imprimir-la-agenda-de-la ginecologa.php

y el código que tengo es este de la pagina que escogerá el especialista es:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>

<form action="" method="post">
<table width="100%" border="0">
<tr>
<th colspan="4" scope="col"><p>&nbsp;</p>
<p><h1>Seleciona la agenda a editar.</h1></p>
<p>&nbsp;</p></th>
</tr>
<tr>
<td width="353"><h1>&nbsp;</h1></td>
<td width="262"><h1>Radi&oacute;logo:
<input type="radio" name="especialista" value="radiologo">
</h1></td>
<td width="289"><h1>
<input type="radio" name="especialista" value="ginecologa">
Ginec&oacute;loga:
</h1></td>
<td width="257"><h1>&nbsp;</h1></td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right"> <input type="submit" name="agenda-a-editar" id="agenda-a-editar" value="Enviar"></td>
<td align="left">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</form>

<a href="vista.php">Volver a la pagina principal</a>
</body>
</html>
le he intentado varias formas pero todavía no la cojo