2013-03-08 20 views
0

我abc有一個emailme形式在假設(xyz.com)的PHP不支持的網站,我在一個子域名託管一個php文件說(123.com)來看看我的網站假設爲( abc.123.com)。,它的工作正常,但我如何從(abc.123.com)的那個php文件重定向到我在xyz.com上的你的頁面?關於電子郵件表單重定向

任何解決方案? ,提前感謝並等待親切的回覆。

更具體

在我的形式我包括網頁地址爲

urlWebsite = "abc.xyz.com" 

和PHP文件我包括頭的位置爲

Header('Location:'. $_POST['urlWebsite'].'/p/thank-you.html') 

什麼想法?

回答

2

你需要傳遞方案也httphttps:頭球后加入模具

header('Location: http://'. $_POST['urlWebsite'].'/p/thank-you.html'); 
die; 
+0

+1! – TFennis 2013-03-08 10:05:22

+0

謝謝你,我會試一試 – 2013-03-08 12:05:00

+0

對不起,你應用header('Location:http://'。$ _POST ['urlWebsite']。'/ p/thank-you.html')後的結果。死; was undefined/p/thank-you.html – 2013-03-08 13:15:17

相關問題