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

0 Members and 1 Guest are viewing this topic.

Offline admin

  • Administrator
  • *****
  • Posts: 43
  • Karma: +1/-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: 35
  • 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: 43
  • Karma: +1/-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  :) :) ;)

 

Related Topics

  Subject / Started by Replies Last post
24 Replies
21400 Views
Last post December 15, 2009, 05:07:59 AM
by djape
3 Replies
4564 Views
Last post July 15, 2009, 03:02:15 AM
by Alabanieh
1 Replies
8214 Views
Last post January 29, 2009, 10:29:27 PM
by vivandmars
6 Replies
1699 Views
Last post September 16, 2008, 06:08:35 PM
by phon
11 Replies
5119 Views
Last post December 08, 2009, 10:52:33 AM
by admin