Reply to help

Your name:

Reply:


Posted by 6e on 01/05/08 18:06

Hi!

Please help!!!

Im using php and Im trying to redirect my users to a new page along
with keeping all of the POST variables...

I tried 2 things

1. Using this echo (below), but I can't figure out how to send along
the post variables..

echo"<html><head><title></title><meta http-equiv='refresh'
content='0;URL=http://www.mydomain/myPage.html><body>Redirecting</
body></html>";

-------------

2. Using Curl - note I changed the tunnelling ip address to
xx.xxx.xxx.xxx for this post
but the page doesn't change..

$domain1 = "http://www.mydomain.com/myPage.html";

$ch = curl_init();
curl_setopt ($ch,CURLOPT_URL,$domain1);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $req);
curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/
x-www-form-urlencoded", "Content-Length: " . strlen($req)));

curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, "http://xx.xxx.xxx.xxx:3128");
curl_setopt ($ch, CURLOPT_PORT, 80);

$my_curl_result = curl_exec($ch);

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация