Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/01/2009, 10:15
tirengarfio
 
Fecha de Ingreso: septiembre-2008
Mensajes: 146
Antigüedad: 16 años, 6 meses
Puntos: 1
Respuesta: Pasar una variable php en una pagina con un formulario

Gracias a los tres.

Por lo que os he entendido el codigo me deberia quedar algo asi:

Código:
<!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"><br>
-->
<input name="flag" type="hidden" id="flag" value="<?php $var ?>">

</form>


</body>

</html>
Pero claro es que de esa manera no parece ningun boton para enviar los datos del formulario...