Dynadot

Simple Contact Form (UPDATED)

Spaceship 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: 371
Last edited:
2
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
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
•••
0
•••
Cool, I will try it out.
 
0
•••
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
•••
hi eric, thanks for your cool stuff! ;)

i wondering to know how to add more columns so that visitor can choose where they can send email. just like in company, visitor can choose if they want to send their email to IT Departement, Sales Department, Manager, or else... and also have an attachment (please see Contact Form - PHP Development for example)








sorry for my bad english, i'm indonesian :D
 
0
•••
almost 2 years since the last version, any updated ?
 
0
•••
0
•••
0
•••
So... I have been away for quite some time. It does not appear I can edit the first post anymore. But thought I'd add that this script has been updated a bit over the years since I put it up for download here. It can be found on GitHub:

https://github.com/ericsizemore/simple_contact_form
 
4
•••
So... I have been away for quite some time. It does not appear I can edit the first post anymore. But thought I'd add that this script has been updated a bit over the years since I put it up for download here. It can be found on GitHub:

https://github.com/ericsizemore/simple_contact_form


Glad to see you back...
I have FREE AD SPACE for YOU on DropGrabs.com if you have something non-adult and legal you would like to promote... I'll leave it up for the rest of 2017. My Welcome HOME Gift to YOU... ~Patty
 
1
•••
thanks for the sharing, i'll try on my website....:)
 
0
•••
Back