Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/03/2012, 17:48
barcenas_joe
 
Fecha de Ingreso: septiembre-2011
Mensajes: 31
Antigüedad: 12 años, 8 meses
Puntos: 0
submit vs button

tengo el siguiente codigo:

<html>
<head>
<script type="text/javascript" src="validar01.js"></script>
<!-- Fin Archivo de validación -->
</head>
<body>
<!-- Formulario de contacto colocar dentro de BODY /BODY-->
<div align="center">
<form method="post" action="validando.php" onSubmit="return Validar(this);">
<label for="name">Nombre Completo:<br>
<input id="name" name="name" type="text" size="27"> </label><br><br>
<label for="email">Correo Electrónico:<br>
<input id="email" name="email" type="text" size="27"> </label><br><br>
<input type="button" name="tipo" value="Enviar" /><br>
</form>
</div>

</body>
</html>


<?php
if ( isset($_POST[tipo]) ) {
//Importamos las variables del formulario
@$name = addslashes($_POST['name']);
@$email = addslashes($_POST['email']);

echo @$name;
}
?>

Pero al ejecutarlo no puedo ver la ultima linea echo, porque?

alguna sugerencia?