Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/05/2008, 15:47
Avatar de stramin
stramin
 
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 1 mes
Puntos: 336
Respuesta: recibir directamente valores de otra web

2 formas

1.- GET:

envias la url de esta forma: http://www.pagina.com/?variable1=1&variable2=2

y recibes asi <?php $_GET['variable1'] ?>

2.- POST

pones campos hidden de formulario asi: <form name="form1" method="post" action="http://www.pagina.com">
<input name="variable1" type="hidden" id="variable1" value="1">
<input name="variable2" type="hidden" id="variable2" value="2">
<input type="submit" name="Submit" value="Enviar">
</form>


y recibes asi <?php $_POST['variable1'] ?>