PHP의 reCAPTCHA를 사람이</p> <p>는 내가 뭘해야하는 전송 갔다 형태입니다 ... 내가 그것을 싶지만 나를 도울 수 있다면
<?php
require_once('recaptchalib.php');
$privatekey = "";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
die ("Sorry please go back and try it again." .
"" . $resp->error . ")");
}
if ($resp->is_valid) {
require_once('sendmail.php');
}
?>
을 doublecheck.php 사용
메일 문제를 보내
그리고 내 sendmail.php
그것의 성공적인 내가 $ 메모를 보낼 필요가 있지만, $ 노트는 항상 비어 때 내가 함께 힘든 시간을 갖는있어 무엇<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
$todayis = date("l, F j, Y, g:i a");
$attn = $attn ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($Your Prayer or Concern)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";
$from = "From:\r\n";
mail("", Prayers and Concerns, $message);
?>
<p align="center">
Date: <?php echo $todayis ?>
<br />
<br />
Attention: <?php echo $attn ?>
<br />
Message:<br />
<?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?>
<br />
<?php echo $ip ?>
<br /><br />
<a href="contact.php"> Next Page </a>
</p>
</body>
</html>
. 나는 단지 나의 성공적인 PHP 안에 내 센드 메일 PHP를 넣어야합니까? 또는 누군가가 왜 $ notes가 비어 있는지 설명 할 수 있습니까?
내 recaptcha 키를 가지고 있고, 또한 이메일 주소가 있습니다. 난 당신이 LiveHeaders는 파이어 폭스 플러그인 정확히 어떤 형태로 볼 수 제안
<form action="doublecheck.php" action="http://www.ipower.com/scripts/formemail.bml" enctype="application/x-www-form-urlencoded" method="post">
<table>
<tbody style="font-size: 12px;">
<tr>
<td width="661">Your Prayer or Concern<br/>
<textarea name="notes" rows="6" cols="100" maxlength="1024"></textarea></td>
</tr>
<tr>
<td><script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LdoKLoSAAAAAChm6Oaquimz8g1elKd5OQBJtCLm"></script>
<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=6LdoKLoSAAAAAChm6Oaquimz8g1elKd5OQBJtCLm" height="300" width="500" frameborder="0"></iframe><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript> <p>
<input type="submit" id="Pray" name="Pray" value="Send your prayer"/>
</p></td>
</tr>
<tr>
</tr>
</tbody>
</table>
</form>
앞으로 올바른 코드 형식을 지정하십시오. – Artefacto
다른 모든 변수가 작동하는 경우에는이 변수가 포함 된 사실과 아무런 관련이 없습니다. 양식에 '메모'라는 이름의 글이 게시되지 않았거나 입력 한 내용이 없습니다. 양식 (HTML) 코드 란 무엇입니까? 'var_dump ($ _ POST)'를 아직 시도한 적이 있습니까? – animuson
나는 그 테이블에 내 HTML을 포함했습니다. –