Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/01/2008, 12:59
Keysher
 
Fecha de Ingreso: noviembre-2002
Mensajes: 1.341
Antigüedad: 22 años, 4 meses
Puntos: 17
Re: recoger de un formulario HTML (LOCAL) en un PHP(SERVIDOR)

Funcionar funciona.... seguro que está todo correcto? el script PHP entero es ese?

Desconozco si hay alguna directiva de PHP que impida recoger variables por POST desde otros dominios....

Pero te puedo asegurar que algo tan sencillo como esto funciona:

Código PHP:

<html>
<
head>

</
head>
<
body>
<
form method="post" action="http://www.dominio.com/post.php">
<
input type="hidden" name="prueba" value="Muestra_este_valor">
<
input type="submit">
</
form>
</
html>
</
body
Y el post.php:

Código PHP:

<?
echo $_POST['prueba'];
?>