Author Topic: Advanced PHP Contact Form  (Read 7274 times)

0 Members and 2 Guests are viewing this topic.

Offline admin

  • Administrator
  • *****
  • Posts: 57
  • Karma: +2/-0
  • Gender: Male
Advanced PHP Contact Form
« on: February 05, 2010, 04:30:49 PM »
1. Unzip

2. Configure the myconfig.php file

3. Configure the response.php (HTML)

4. Upload cform folder (root/cform)

5. PHP Code to display form:
Code: [Select]
<?php $root $_SERVER['DOCUMENT_ROOT']; include $root '/cform/ccform.php'?>

If you like this script, please link back to this page!

Download: Members
« Last Edit: February 09, 2010, 07:57:23 AM by admin »

Offline Navarre

  • Supporter
  • **
  • Posts: 3
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #1 on: February 18, 2010, 08:07:33 AM »
I downloaded the program and everything seems to work fine, only the 'captchas.php' doesn't seem to work. And I don't see a number to copy and the program doesn't ask for it either. It just sends the email.
Can you tell me what I do wrong? Thanks!

Offline alex

  • Global Moderator
  • *****
  • Posts: 58
  • Karma: +11/-0
Advanced Contact form with ReCaptcha
« Reply #2 on: February 18, 2010, 01:50:14 PM »
Quote
I downloaded the program and everything seems to work fine, only the 'captchas.php' doesn't seem to work. And I don't see a number to copy and the program doesn't ask for it either. It just sends the email.

Version with reCAPTCHA


 *    - Get a reCAPTCHA API Key
 *          http://recaptcha.net/api/getkey
 

Replace the text YOUR-RECAPTCHA-PUBLIC-KEY and YOUR-RECAPTCHA-PRIVATE-KEY in ccform.php with the actual keys you received from the ReCaptcha website.


Download:
« Last Edit: February 18, 2010, 01:52:10 PM by alex »

Offline Navarre

  • Supporter
  • **
  • Posts: 3
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #3 on: February 19, 2010, 06:50:50 AM »
Thanks for your anwer... It now works but the whole form looks nothing like the screen.gif anymore... There is this huge image from reCaptcha (size 300x500 pixels) with almost impossible words to read... Is there anyway you can make it look like the screen.gif with just a small size picture with three letters?  Thanks again.

Offline elwir

  • Supporter
  • **
  • Posts: 2
  • Karma: +1/-0
Re: Advanced PHP Contact Form
« Reply #4 on: February 19, 2010, 08:32:50 AM »
Only a guess, but did you upload (captchas.php-black.png) using binary mode?  ??? :)

Offline Navarre

  • Supporter
  • **
  • Posts: 3
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #5 on: February 21, 2010, 07:56:57 AM »
I did upload those files in binary code. I will put a picture up to show you what my form looks like

Offline bjgnagy

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #6 on: February 27, 2010, 08:55:15 AM »
I got everything installed and working.  Is there a way to have it load a webpage instead of echoing "thank you"?

Offline admin

  • Administrator
  • *****
  • Posts: 57
  • Karma: +2/-0
  • Gender: Male
Re: Advanced PHP Contact Form
« Reply #7 on: February 27, 2010, 09:46:59 AM »
Quote
I got everything installed and working.  Is there a way to have it load a webpage instead of echoing "thank you"?

In ccform.php delete the following (line 90).......
Code: [Select]
echo"<center><font size=\"2\">Thank You</font></center>";

....and replace it with the following:
Code: [Select]
$redirect = 'http://www.example.com';
echo "<center><font face=\"tahoma\">Click <a href=\"$redirect\">here</a> if your browser does not automatically redirect you</font></center>";
?>
<SCRIPT LANGUAGE="JavaScript">
redirTime = "2550";
redirURL = "<?php echo $redirect ?>";
function redirTimer() {
self.setTimeout("self.location.href = redirURL;",redirTime);}
</script>
<BODY onLoad="redirTimer()">
<?php

version2
Code: [Select]
$redirect = 'http://www.example.com';
?>
<SCRIPT LANGUAGE="JavaScript">
redirTime = "1000";
redirURL = "<?php echo $redirect ?>";
function redirTimer() {
self.setTimeout("self.location.href = redirURL;",redirTime);}
</script>
<BODY onLoad="redirTimer()">
<?php


Offline astra

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #8 on: March 01, 2010, 01:23:23 PM »
thanks  :) :) ;)

Offline playhit

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #9 on: March 15, 2010, 07:05:35 PM »
Hi! I have looked dozens of times for the
Quote
"Replace the text YOUR-RECAPTCHA-PUBLIC-KEY and YOUR-RECAPTCHA-PRIVATE-KEY in ccform.php with the actual keys you received from the ReCaptcha website.
I can't find it on any line in the ccform.php I just downloaded on 3-15-2010. Just in case I missed something could you repaste some of the sample text from that php page where it is posted. Thanks for your help on this lovely form! I actually looked in every file included in the folder and can't find any lines that mention private and public recaptcha keys. Thanks! I have the recaptcha keys already but need to know where to replace them because I don't see it in the current ccform.php file.

Offline Roby

  • Supporter
  • **
  • Posts: 4
  • Karma: +1/-0
Re: Advanced PHP Contact Form
« Reply #10 on: March 16, 2010, 12:29:09 AM »
There's two version to download (1.recaptcha and 2.simple captcha).  ;)

Offline ta2ta2

  • Supporter
  • **
  • Posts: 2
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #11 on: March 25, 2010, 03:18:01 AM »
I receive "Invalid Characters: < Go Back" on submit however I filled all fields gently. Please advise

Offline jaroon

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #12 on: April 01, 2010, 05:52:21 PM »
Eggcellent script!

I suggest everyone using RECAPTCHA version!

Offline timebender

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #13 on: May 03, 2010, 09:20:16 PM »
I'm hosted with Godaddy.
It looks like it is sending the mail and refreshs the page, but when I check the mail, no mail.   :(

Anythoughts?

Offline clintuu

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
Re: Advanced PHP Contact Form
« Reply #14 on: May 04, 2010, 02:54:28 AM »
i have installed everything, but when i submit  form it says thank you but it doesnt go to my email