Jump to content

add recaptcha problem


btr2007

Recommended Posts

I have a webpage which has the following:

 

WEBPAGE

<form method="post" action="http://www.xxxx.nz/Scripts/xxxxemail.php" enctype="multipart/form-data">

            <div>

<input type="hidden" name="redirect" value="http://xxxxxxx.net.nz/xxxxyou.php" /></div>

<form>

<table border="1">

<tr><td>Company Name (required)</td><td><input type="text" name="Business" /></td></tr>

<tr><td>Email Address (required)</td><td><input type="text" name="Email" /></td></tr>

<tr><td>Wish To Sign Up For ?</td><td><select size="1" name="xxxxxxx">

<option value="No">No</option>

<option value="Yes">Yes</option>

 

xxxxxx

xxxxxx

xxxxxx

<input type="submit" value="Submit for Quote"  /></td></tr>

 

 

xxxxemail.php

<?php

require '/home/xxxxxz/Includes/connect.php';

 

/* Assign all variables passed from the form */

$business = mysql_real_escape_string($_POST['Business']);

xxxxxx

xxxxxx

/* Sending email with information to us */

$to = "kerryxxxxx";

$subject = "xxxxx";

$random_hash = md5(date('r', time()));

$headers = 'From: xxxxxxx';

$headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\"";

ob_start();

?>

--PHP-alt-<?php echo $random_hash; ?>

Content-Type: text/html; charset="iso-8859-1"

Content-Transfer-Encoding: 7bit

 

<!-- Email Content -->

<? include '/home/xxxxxx/Includes/laqcquote.inc'; ?>

<!-- End of Email Content -->

 

--PHP-alt-<?php echo $random_hash; ?>--

<?php

$html = ob_get_contents();

ob_end_clean();

$body = $html;

mail($to, $subject, $body, $headers);

 

/* Once Complete return to............*/

header("Location: https://xxxxxxxxxxxxxxxxxxx/qxxxxxyou.php");

?>

 

 

if I want to add the recaptcha and have it verify what do i need to do? I have code via recaptcha and it says used a verify.php. If I do that i do not have the web page going through to where I can get the data via email and it does not give me an error message. Can anyone help? This is all new to me and I am struggling to see where I put the recaptcha and to make it work if right and not work if wrong

Link to comment
Share on other sites

Did you actualy read the captcha instructions?  cause you clearly didn't read the forum ones here, where's your php/code tags huh???  yeah! see!  :P

 

What captcha is wanting you to do is either use another page - over and above your own, not in place of your own or use your page in place of the one that it is naming as verify.php.  It's quite tricky and lengthy to set up captcha, so I suggest going through the instructions line by line if you get a specific issue/error once you're done post it up here (inside the proper forum tags of cource!) and we'll do our best.  But what you are asking already has some fairly in deapth step by steps, and would take the best part of the morning to write you another one.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.