Simple Contact Form (UPDATED)

Spacemail by SpaceshipSpacemail by Spaceship
Watch
This is an update of my Simple Contact Form script that I posted here which is very old and has many vulnerabilities.

(all functions pulled from my Domain Name Portfolio script ;) )

Current Version: 1.0.7 (July 25, 2008)

Changelog:
1.0.7
-Removed option for HTML email
-Script now uses a config file 'sc_config.php' in 'sc_includes'
-There are other changes, but I can't recall everything.
-Cleaned up code and HTML

1.0.6
-Replaced current captcha with a whole new class and fonts
-Added a captcha image refresh
-Added new email headers
-Cleaned up code

1.0.5
-New constant, USE_HTML - if set to false, HTML won't be used for email.
-Added a new font "Acens.ttf" and removed one.
-New function to determine if the server has GD and freetype support.
-JS validation added to contact form (just checks if fields are empty atm)
-Overall code cleanup.

1.0.4
-New constant, USE_CAPTCHA - if set to false, CAPTCHA won't be used.
-Overall code cleanup.

1.0.3
-New constant, SPAM_NUM_LINKS, for the is_spam function.
-Added CAPTCHA (requires GD2 w/FreeType)

1.0.2
-Improved functions + the new 'is_spam' function
-New email headers (taken from phpBB's emailer class, and modified a tad)

1.0.1
-Functions file, with several functions to properly 'sanitize' input.
-Better error handling, and email validation regex
-Licensed under the GNU GPL

Attached (or you can download here: http://code.google.com/p/simple-contact-form/ ). Let me know if you have any problems.
 

Attachments

  • simple_contact_form.zip
    40.2 KB · Views: 479
Last edited:
2
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
1.0.4
-New constant, USE_CAPTCHA - if set to false, CAPTCHA won't be used.
-Overall code cleanup.

I missed this part.



One more good idea can be Email Retype field, 30% of my visitors mistype there email address.
 
0
•••
0
•••
I'm going to be updating this script, but I'd like to know if any of you have features you want me to add.

--
And

Sorry, never noticed your post fried-chicken - It's off to the left for me?
 
0
•••
thanks secondVersion
 
0
•••
0
•••
Downloaded it. :)

Thanks a lot SV.
Joe
 
0
•••
Just what I was looking for. :)
 
0
•••
Anyone have a copy of the latest version? The attachment no longer works. This time I thought I had saved a copy on my PC, but I can't find it.
 
0
•••
SecondVersion: The attachment no longer works (as you're already aware). Did you manage to find a copy?
 
0
•••
Was never able to find a copy. If no one has a copy, I may have to rewrite, IF I can ever find the time to do so.
 
0
•••
Eric, do you have any updates? the attachment link is not working
 
0
•••
0
•••
Anyone got the lasted update?
 
0
•••
Last edited:
0
•••
Does this contact form work on it's own or part of your domain script?
 
0
•••
Works on it's own.
 
0
•••
Cool, I will try it out.
 
0
•••
Looks good SubVersion. :)
 
0
•••
attachment removed, will reupload once everything with NP is fixed from the harddrive replacement.
 
0
•••
A little late, but the script has been reuploaded.
 
0
•••

We're social

Spaceship
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back