Help. I have no idea what to do

4 views
Skip to first unread message

atcair

unread,
Oct 26, 2008, 1:04:33 PM10/26/08
to reCAPTCHA
Hi,

I manage my site through frontpage (I know not good) but I am not a
programmer just a business owner who has to run a site. Anyway, I put
the reCaptcha code on my site (java) and it all works except I don't
know how to create the submit button which will make reCaptcha work.
Right now, whether you enter the words or not the form will still
submit.
I downloaded the java package from the resources but have no idea how
that gets installed on the server or where.

I know I am an idiot but could someone either explain this step by
step or point me to somewhere that I get foolow some direction. I have
very limited html skills so I can basically copy and paste scripts and
thats about it.

Thanks

Carl Cappelen

unread,
Oct 26, 2008, 2:30:05 PM10/26/08
to reca...@googlegroups.com
I also concur. A "step by step" of instructions would be a great
help for all of us...

TIA,
Carl,

Arnie

unread,
Oct 27, 2008, 4:15:57 PM10/27/08
to reCAPTCHA
I too, completely agree. So far, even the "simple examples" are very
confusing. They are commented very sparsely. A tutorial explaining
what each section of code does would be helpful.

I find this piece of code in one example particularly exasperating:

if ($_POST["recaptcha_response_field"]) {
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],

$_POST["recaptcha_challenge_field"],

$_POST["recaptcha_response_field"]);

What is the value of REMOTE_ADDR? Where is it stored? It is
definitely not declared in the sample PHP script included in the
reCAPTCHA download (example-captcha.php) from the reCAPTCHA.com web
site.

Where is the "recaptcha_challenge_field" located?

Admitedly, I am not a PHP Guru. I think learning my example is a
great way to learn. As long as the examples are detailed and
explained properly.

Paul Herring

unread,
Oct 27, 2008, 4:33:48 PM10/27/08
to reca...@googlegroups.com
On Mon, Oct 27, 2008 at 8:15 PM, Arnie <ar...@simcona.com> wrote:
[...]

> I find this piece of code in one example particularly exasperating:
>
> if ($_POST["recaptcha_response_field"]) {
> $resp = recaptcha_check_answer ($privatekey,
> $_SERVER["REMOTE_ADDR"],
>
> $_POST["recaptcha_challenge_field"],
>
> $_POST["recaptcha_response_field"]);
>
> What is the value of REMOTE_ADDR? Where is it stored? It is
> definitely not declared in the sample PHP script included in the
> reCAPTCHA download (example-captcha.php) from the reCAPTCHA.com web
> site.

It would appear that you require a basic PHP tutorial. $_SERVER is an
array populated by the server that deals with the php request, and as
such and explanation of such should not appear in any notes for any
3rd party scripts such as recaptcha.

> Where is the "recaptcha_challenge_field" located?

Again, a basic PHP tutorial would serve you. $_POST is an array
containing all the POSTed variables from the previous request, and is
not specific to recaptcha. $_GET is a similar array used for passing
in the GET variables.

If that previous sentence does not make sense, you do not know enough
PHP to make use of the recaptcha examples.

> Admitedly, I am not a PHP Guru. I think learning my example is a
> great way to learn. As long as the examples are detailed and
> explained properly.

The recaptcha 'tutorials' are in no way a substitution for not
bothering to learn the basics of PHP. I suggest you google for some
basic tutorials dealing with these common concepts before trying to
jump in at the deep end, as it were.

--
PJH

http://shabbleland.myminicity.com/sec

Reply all
Reply to author
Forward
0 new messages