Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/09/2015, 04:52
wurser
 
Fecha de Ingreso: septiembre-2015
Mensajes: 8
Antigüedad: 8 años, 7 meses
Puntos: 0
Respuesta: Código de inserción en variable php

Formulario en index.php

<form action="nuevo.php" method="post" target="_blank">
<br>
Link: <input type="text" name="enlace" required >
<br>
<input type="submit">
</form>


Codigo en nuevo.php

<?php

$enlace = $_POST['enlace'];


echo $enlace;

echo "<form action='confirmado.php' method='post'>
<input type='hidden' name='enlace' value='".$enlace."'>
<br>
<input type='submit' value='Confirmar'> </form>";

?>