Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/03/2008, 21:12
ultimateZERO
 
Fecha de Ingreso: marzo-2008
Mensajes: 173
Antigüedad: 16 años, 10 meses
Puntos: 0
como saber k boton se presiono

bueno ps la cuestion es k tengo el sig formulario y me gustaria saber si en x_insertar_img.php hay alguna forma de saber cual de los 2 botones se presiono.

Código HTML:
<form action="x_insertar_img.php" method="post" enctype="multipart/form-data">
	<input type="hidden" name="id_propiedad" value="<?php echo $_GET['id']; ?>">
	<input type="hidden" name="num_img" value="<?php echo $_GET['num']; ?>">
	<table border="0" cellspacing="0" cellpadding="3" align="center">
	  <tr>
		<td align="right" valign="top" width="150"><font class="texto">Imagen<br><br></font></td>
		<td><input type="hidden" name="MAX_FILE_SIZE" value="409600"><input name="userfile" type="file" size="40" maxlength="100"></td>
	  </tr>
	  <tr>
		<td colspan="2" align="right">
			<input name="btn_agregar" type="submit" value="Cargar y Agregar mas imagenes" />
			<input name="btn_terminar" type="submit" value="Cargar y Terminar" />
		</td>
	  </tr>
	</table>
</form> 
si alguien sabe agredeceria mucho la ayuda. de antemano muchas gracias