cloudy

Author Topic: Free Contact Form PHP Script with image captcha - OLD VERSION  (Read 40547 times)

0 Members and 1 Guest are viewing this topic.

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #60 on: August 20, 2008, 06:31:47 PM »
-----------------------------------------
- how to add another field?
-----------------------------------------
Download this Version or higher: 1.12 - 20-Aug-2008
You would have to edit 5 places places in the script. see the readme.txt
Search in the code for 'add another field here' without the quotes,
I put this comment just after every part that code would need to be added.
Find each of the five places, then pick a unique field name, and code it yourself.
I have not documented this before, because it is really only a basic contact form.
There are other free contact forms that are very advanced in that they allow you to configure multiple fields and field types.
This one will never be that advanced because I want it to remain simple.



Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #61 on: August 20, 2008, 06:32:54 PM »
Hello, i was looking for a contact form script with captcha and lands on this page.
However, I can't seems to download the secure cpatcha file. Anyone got working link?

What country are you in?
My server does have a country to IP blocker for some countries

Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #62 on: August 20, 2008, 07:06:06 PM »
I am in Malaysia right now.
Maybe you blocked asian countries.  #-o

Offline reif

  • Posts: 55
  • Denver, Colorado USA
    • West Denver Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #63 on: August 20, 2008, 07:13:03 PM »
-----------------------------------------
- how to add another field?
-----------------------------------------
Download this Version or higher: 1.12 - 20-Aug-2008
You would have to edit 5 places places in the script. see the readme.txt
Search in the code for 'add another field here' without the quotes,
I put this comment just after every part that code would need to be added.
Find each of the five places, then pick a unique field name, and code it yourself.
I have not documented this before, because it is really only a basic contact form.
There are other free contact forms that are very advanced in that they allow you to configure multiple fields and field types.
This one will never be that advanced because I want it to remain simple.




Thank you Mike!

Reif Heck

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #64 on: August 20, 2008, 08:47:58 PM »
I am in Malaysia right now.
Maybe you blocked asian countries.  #-o

Yes because my server has e-commerce and strict security, I blocked some countries. Sorry
You can download the contact-form.zip here, I have just attached it below.
The library can be downloaded from http://www.phpcaptcha.org/download/

Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #65 on: August 20, 2008, 09:23:53 PM »
Thanks  :D
I'll download it now.


Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #66 on: August 21, 2008, 03:08:18 AM »
I have difficulties integrating the script into my site.
My site is at www.clafy.com. The script use custom made templating system but still have the same extension as the others; *.tpl
I tried many ways but failed to make the contact form in my script.

I managed to create faq page, tos page but I dont have a clue how to create a contact page inside the script templating system.
can anyone help me in this?

(I create these based on the structure of the script)
This is how the contact.php looks like
Code: [Select]
<?

REQUIRE_ONCE( 'dpi_init.php' );

$center = eval_template("contact");



echo
eval_template("header") .
eval_template("body") .
eval_template("footer")
;





?>


This is how the contact.tpl looks like
Code: [Select]
<table class="table_100">
<tr>
<td>
<h1>CONTACT US</h1>
</td>
<td class="simple" valign="top" align="center">
$pages_text
</td>
</tr>
<tr>
<td class="td_page" valign="top" align="left">
<table width="100%">
<tr>
<td>
CONTENT HERE
</td>
</tr>
</table>
</td>

</tr>
</table>


This is the script that I used.
http://forums.digitalpoint.com/showthread.php?t=982575

Offline ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #67 on: August 21, 2008, 03:15:12 AM »
In your template...You should be able to add the contact script under this....

Code: [Select]
<td class="td_page" valign="top" align="left">
<table width="100%">
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #68 on: August 21, 2008, 03:43:44 AM »
Nope, not working. I did like what you suggest but still can't show the form in the script.

Offline NorCal Dan

  • -= Dan =-
  • Posts: 9,438
  • Davis Vue/iMac/Parallels/WinXP
  • Marysville, California
    • Skype @ KJ6RGX
    • Traveling RV Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #69 on: August 21, 2008, 12:55:06 PM »
Just tried to use your contact form to send you a message and received this output when sending the message:

Quote
Contact Us

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home3/clafyco/public_html/contact.php:8) in /home3/clafyco/public_html/captcha-secureimage/securimage.php on line 422
Message Sent

Your message has been sent, thank you.

It says the message was sent, did you get the message in your mailbox?

Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #70 on: August 21, 2008, 03:29:20 PM »
I think you went to contact.php.


Try go to this one http://www.clafy.com/contactus.php
There is no form on the page. Dunno why the form did not load inside my site when integrated with my script.


and no, I did not received any emails.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #71 on: August 21, 2008, 03:47:45 PM »
You need to show us the php source of that page for anyone to help, maybe attach it renamed to .txt

Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #72 on: August 21, 2008, 04:03:22 PM »
index.php

Code: [Select]
<?

/**************************************************\

DPI (Lightweight ImageHosting Script)
By support@image-host-script.com
Version 1.0

\**************************************************/

  REQUIRE_ONCE( 'dpi_init.php' );



$upload_fields=$url_fields="";

$tm = time();
for($i=1; $i<=$settings['maxnumimages']; $i++) {
$fldname = 'f_'.$tm;
$urlname = 'u_'.date('d',$tm);

$upload_fields .= eval_template("upload_field_file");
$url_fields .= eval_template("upload_field_url");
}

$sitime = time();
$select_gallery = "";

if($logged_user) {
if($logged_user['galleries'] != '') {
$galleries_combo = galleries_combo('gid');
$select_gallery = eval_template("upload_gallery_select");
} else
$select_gallery = "You have not yet created any gallery";
}

$featured_image_path = get_featured_image();

$center = eval_template("upload_box");

echo
eval_template("header") .
eval_template("body") .
eval_template("footer")
;




?>

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #73 on: August 21, 2008, 06:12:57 PM »
I do not see any contact form php code in your script

Offline nyunyu

  • Posts: 8
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #74 on: August 21, 2008, 06:28:37 PM »
It use a templating system. I don't know if I should put the contact.php code on the index.

 

cumulus