Issues with Adding a reCaptcha to a form

Discussion in 'Web Design' started by krymson, May 22, 2014.

to remove all ads.
  1. krymson

    krymson Member

    Messages:
    338
    So I had some work handed to me yesterday which includes just adding a recaptcha to an already existing form... here is the URL http://mddrilling.com/employment_application.php

    Mind you this site was created a while back they just want to add a recaptcha form... So I have it in there it validates and everything functions as it should except its not sending the email and I cant figure out for the life of me what's causing the issue so I turn to the forum for help...

    You can see the code here... as its too long to post in the forum... http://pastebin.com/W8j7x4gY

    any help would be greatly appreciated.

    Thanks in advance
     
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,670
    define "not sending the email", because there is no code TO send an email in what you posted.
     
  3. krymson

    krymson Member

    Messages:
    338
    The original page is... http://mddrilling.com/employment_application.html, but in order to validate the captcha it has to be done on the server-side so i made it a php page. before adding the php and capatcha the original form sends the email using the post function.

    To be honest, I'm terrible with creating forms manually. I mostly deal with wordpress or jotform for the form creation, but i dont wanna mess up what they're doing now.
     
    Last edited: May 22, 2014
  4. ronaldroe

    ronaldroe Super Moderator Staff Member

    Messages:
    1,223
    Jon! LTNS, bruh!

    In verify.php, starting with line 600 of the link you posted to the code, you're just echoing the HTML for the results page. There's no actual script to send the email, or even collect the form data for that matter. Basically, you're just printing a new page if the CAPTCHA passes.
     
  5. krymson

    krymson Member

    Messages:
    338
    The issue was able to be resolved with some simple php includes... I was over thinking the problem... issue solved... On to the next one!
     

Share This Page