<?php
/* subject and email varialbles*/
$emailSbuject = 'Subscribe';
$webMaster = '[email protected]';
$emailSbuject2 = 'Thank you';
$client = ' $emailFeild\r\n';
/*gathering data variables*/
$emailFeild = $_POST['email'];
// admin message body
$body= <<<EOD
Our new subscriber is $emailFeild
Email: $emailFeild
EOD;
$textMessage = <<<EOD
Thank you for subscribing us. Somebody will get back to you as soon as possible.
EOD;
$headers = "From: $emailFeild\r\n";
$header = "From: [email protected]";
$success = mail($webMaster,$emailSbuject,$body,$headers);
$success1 = @mail($emailFeild,$emailSbuject2,$textMessage,$header);
/*Result*/
$theResults = <<<EOD
EOD;
echo "$theResults";
header("Location: http://www.example.com/");
exit;
?>
나는 모든 페이지 아래에 많은 html 페이지가 있습니다. 나는 그것에 연결된 PHP 스크립트와 텍스트 상자와 버튼이 있습니다.PHP를 해결하는 방법 리디렉션 문제
내 이메일 ID를 입력하고 버튼을 클릭 할 때마다 www.example.com 인 홈 페이지로 리디렉션됩니다. 정확한 페이지에 머물고 싶습니다.
당신에게 특정 페이지가 아닌 홈 페이지로 리디렉션 중입니다. 특정 페이지를 리디렉션 할 조건을 작성하십시오. – Gowri