Ver Mensaje Individual
  #7 (permalink)  
Antiguo 15/01/2009, 10:22
desarrollandoweb
 
Fecha de Ingreso: enero-2009
Ubicación: Bogotá - Colombia
Mensajes: 54
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Pasar una variable php en una pagina con un formulario

No señor, debería quedar de la siguiente manera;

Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title></title>
<style type="text/css" media=all>
</style>
</head>
<body>

<form method="POST" action="http://localhost/red_social/resultado_busqueda.php">

<?php
$var="Hola";
?>

<input type="text" name="nombre"><br>
<input type="text" name="apellidos"><br>
<input type="text" name="email"><br>
<input type="text" name="telefono"><br>
<input type="text" name="domicilio"><br>
<input type="text" name="fechanacimiento"><br>
<input type="submit" name="Buscar">

<input name="flag" type="hidden" id="flag" value="<?php echo $var; ?>">
</form>
</body>
</html> 

así t debería quedar la q envía la info, y en la q la recibe, q en este caso es resultado_busqueda.php podria utlizar el fragmeto q puse unos comentarios arriba.