DMXzone reCAPTCHA Support Product Page

Hi, My form posts to a database with <form action=

Asked 28 Jun 2012 14:55:14
1
has this question
28 Jun 2012 14:55:14 Jane Davies posted:
Hi, My form posts to a database with <form action="<?php echo $editFormAction; ?>" method="post" enctype="multipart/form-data" name="form1"> I have set the redirectURL to the page with the form, but you can submit anything without filling in the captcha. Please advise

Replies

Replied 02 Jul 2012 08:32:00
02 Jul 2012 08:32:00 Vulcho Vulev replied:
Hello Jane.

Can you provide us with link to the problem page ?

Regards: Vulcho.
Replied 02 Jul 2012 09:46:53
02 Jul 2012 09:46:53 Jane Davies replied:
www.cardiganshirecoastandcountry.com/add-your-shop.php

This page is not linked to from the rest of the site.

Many thanks, Jane
Replied 03 Jul 2012 13:24:51
03 Jul 2012 13:24:51 Jane Davies replied:
Any possibility of getting back to me on this please.
Replied 03 Jul 2012 14:00:10
03 Jul 2012 14:00:10 Vulcho Vulev replied:
Hello Jane.

Quote
www.cardiganshirecoastandcountry.com/0php? Error 404


i see missing redirect on your page. Can you please send me the page with the recaptcha on my e-mail:
Regards: Vulcho.
Replied 03 Jul 2012 14:35:19
03 Jul 2012 14:35:19 Jane Davies replied:
Sent by e-mail, thank you
Replied 05 Jul 2012 08:43:13
05 Jul 2012 08:43:13 Teodor Kuduschiev replied:
Hello Jane,

Is this a standard Dreamweaver Insert record that you are using? what version of Dreamweaver are you using and have you changed anything in the insert record code?

I see a piece of code missing there:


if (!isset($mm_abort_edit) || !$mm_abort_edit) {

Replied 05 Jul 2012 09:01:24
05 Jul 2012 09:01:24 Jane Davies replied:
Hi,

Using CS4 and standard insert record 'if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1") {
$insertSQL = sprintf(...... ' etc
Replied 05 Jul 2012 09:02:42
05 Jul 2012 09:02:42 Teodor Kuduschiev replied:
Please wrap your insert record code with:


if (!isset($mm_abort_edit) || !$mm_abort_edit) { 


Here goes the insert record ... if ((isset($_POST["MM_insert"])) &&



}

Replied 05 Jul 2012 09:57:07
05 Jul 2012 09:57:07 Jane Davies replied:
Hi,

I have tried

if (!isset($mm_abort_edit) || !$mm_abort_edit) if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1") {

but I get an error message, Not Found

The requested URL /0php was not found on this server.
Replied 05 Jul 2012 10:06:05
05 Jul 2012 10:06:05 Teodor Kuduschiev replied:
You should add exactly those 2 lines of code:

Before the insert record:

if (!isset($mm_abort_edit) || !$mm_abort_edit) { 


After the insert record:


}  



Do not foget the "{" and "}" Please!
Replied 05 Jul 2012 11:43:44
05 Jul 2012 11:43:44 Jane Davies replied:
Well, Feeling very dumb.
I have this at the beginning

if (!isset($mm_abort_edit) || !$mm_abort_edit) { if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1") {

but I have tried putting the closing } in a variety of places only to get a range of errors. Please can you tell me where exactly the insert record ends.
Replied 05 Jul 2012 11:51:41
05 Jul 2012 11:51:41 Teodor Kuduschiev replied:
You should put it just before the closing php tag here:


header(sprintf("Location: %s", $insertGoTo));
}
?>



should become


header(sprintf("Location: %s", $insertGoTo));
}}
?>

Replied 05 Jul 2012 12:17:42
05 Jul 2012 12:17:42 Jane Davies replied:
Still getting Not Found

The requested URL /0php was not found on this server.
Replied 05 Jul 2012 12:20:18
05 Jul 2012 12:20:18 Teodor Kuduschiev replied:
Please send me your page to
Replied 05 Jul 2012 12:25:32
05 Jul 2012 12:25:32 Teodor Kuduschiev replied:
www.cardiganshirecoastandcountry.com/add-your-shop.php Actually this seems to be working now here? Is it okay on your side?
Replied 05 Jul 2012 13:04:14
05 Jul 2012 13:04:14 Jane Davies replied:
It is not working, the form used to do 3 things:

1. Post the content to a database
2. Show that content to the viewer on the page 'go to'page shop-listing-preview.php
3. Send an e-mail to me to approve the link.

Currently I see the message The requested URL /0php was not found on this server. and I receive and e-mail but no data has been stored so stages 1 and 2 are not working.
Replied 06 Jul 2012 06:47:11
06 Jul 2012 06:47:11 Teodor Kuduschiev replied:
Please remove the redirect you are using in recaptcha. You are already using a redirect in your insert record behavior..

Reply to this topic