cloudy

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

0 Members and 2 Guests are viewing this topic.

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #30 on: August 15, 2008, 01:32:14 PM »
Can anyone tell me what is wrong with this page and how to put it right

http://www.gyweather.com/wxcontact.php

Thanks

Offline ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #31 on: August 15, 2008, 01:38:07 PM »
Just an idea, but could you add a center code for your contact form?
"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 ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #32 on: August 15, 2008, 02:09:09 PM »
Instead of centering the whole page, put <center><div id="contactform">

and at the end of the contact form </center>

That should hopefully center your contact form on your page.
"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 Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #33 on: August 15, 2008, 02:36:15 PM »
Thanks but it is the loss of the grey background panel that has me beat!

Offline ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #34 on: August 15, 2008, 02:50:15 PM »
Your talking about moving them links you have to the right down below your other links correct?
"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 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 #35 on: August 15, 2008, 03:04:21 PM »
Thanks but it is the loss of the grey background panel that has me beat!

The grey background is not there because you are missing the div called
<div id="main-copy">, so add that back in
before this:   <!-- To add into your own page TRIM beginning here -->

and put a </div> after:
<!-- To add into your own page TRIM ending here -->



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 #36 on: August 15, 2008, 03:26:54 PM »
Got it integrated into my template but another but...

When I click submit I get what appears to be a basic html page that has the Thank you message sent stuff.  ...

--Dave

Dave, here is the correct way to integrate into the WD-AJAX-PHP-USA template.

I now offer a special plugin version just for the Weather Display/PHP/AJAX Website USA Template Set
It is exactly the same contact form as my contact.php except this version it is inside a template page called wxcontact.php
wxcontact.php Contact Form (see readme.txt inside the zip for full instructions):
http://www.642weather.com/weather/scripts/wxcontact-form.zip
« Last Edit: October 28, 2008, 06:42:24 PM by MCHALLIS »

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 #37 on: August 15, 2008, 04:02:02 PM »
Dave, here is the correct way to integrate into the WD-AJAX-PHP-USA template.
I have attached the wxcontact.php.txt
You will have to edit it again just to change the email, site name, and site url.

I tried using your code un-edited, gives me this error:

Quote
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /virtual/users/e15563-16382/web/wxcontact.php on line 179

I also tried to add the code you mention to my code but the page will not validate...

What if I don't add the css code?

Offline Goldseeker

  • Posts: 146
  • Guernsey, Channel Islands
    • Guernsey Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #38 on: August 15, 2008, 04:06:01 PM »
The grey background is not there because you are missing the div called
<div id="main-copy">, so add that back in
before this:   <!-- To add into your own page TRIM beginning here -->

and put a </div> after:
<!-- To add into your own page TRIM ending here -->




Many thanks Mike both for the solution and the script

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 #39 on: August 15, 2008, 04:10:23 PM »
Dan,

Try the wxcontact.php.txt I attached to this message, it has all the perfect stuff for the USA template set.
http://www.weather-watch.com/smf/index.php/topic,33604.msg274101.html#msg274101


This is the same as what I has attached before..

I now offer a special plugin version just for the Weather Display/PHP/AJAX Website USA Template Set
It is exactly the same contact form as my contact.php except this version it is inside a template page called wxcontact.php
wxcontact.php Contact Form (see readme.txt inside the zip for full instructions):
http://www.642weather.com/weather/scripts/wxcontact-form.zip
« Last Edit: October 28, 2008, 06:42:49 PM by MCHALLIS »

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 #40 on: August 15, 2008, 04:25:22 PM »
I re-did pasting in your code to mine, looked it over and removed a couple of extra <?php from the code and it appears to be working and validating now with your css code inserted and error reporting turned off.  Thanks for pointing out my problem.  Let me know if you spot anything else...

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 #41 on: August 15, 2008, 04:28:18 PM »
I now offer a special plugin version just for the Weather Display/PHP/AJAX Website USA Template Set

It is exactly the same contact form as my contact.php except this version it is inside a template page called wxcontact.php

wxcontact.php Contact Form (see readme.txt inside the zip for full instructions):
http://www.642weather.com/weather/scripts/wxcontact-form.zip

It is only English language at this time (it does not have any multi language features)
« Last Edit: October 28, 2008, 06:43:00 PM by MCHALLIS »

Offline saratogaWX

  • Posts: 4,575
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
    • Saratoga Weather
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #42 on: August 15, 2008, 04:49:36 PM »
Very nice Mike!  I'll update the plugins page with this great addition.  I'll also give a whack at converting it to World-ML for multilingual support :)

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

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 #43 on: August 15, 2008, 04:52:03 PM »
Cool, thanks Ken  :D

Offline daveq

  • Posts: 3,098
  • Hollywood, MD
    • Hollywood - St. Mary's County, Maryland
Re: Free Contact Form PHP Script with image captcha - contact.php
« Reply #44 on: August 15, 2008, 05:41:19 PM »
Thanks, Mike.  Bet you didn't know I was going to turn this into a science project when you made the first post.

--Dave

BTW.... It works like a champ!!