|
General Details
|
|
PHP (Hypertext Preprocess...
|
|
Posted 1.19 Year Ago
|
|
393 Views
|
|
Received 2 Ratings
|
|
Portable Contact Form
Description
A simple contact form with these inputs: Name, Subject, Type of Inquiry (can modify selections easily), E-Mail and Body.
There is also image validation as well.
Very secure! All inputs are validated against regular expressions and the e-mail is validated against it's ISO standard.
This is VERY SIMPLE! But works very well. I made this initially for my graphic designer friend who knows nothing but HTML/CSS, so I made it easy for him to use; if he can use it, anyone can!
Technical
Very simple. Just put the files on your server and in 3 lines, you are ready to go.
Source Code
|
Download Source Code
portable-contact-form.zip ( 0.00Mb )
|
NEVER open a .exe, .bat, .cmd, or other executable file since that is where viruses are likely to live. Please virus scan all files you download.
|
Comments
| Please login to post comments. |
|
|
I have uploaded version 2 of this. There are many great new features.
Check it out: http://www.coderprofile.com/networks/source-codes/634/portable-contact-form-v2
|
|
|
Yeah, I actually did optimize this in some of my website to do this, because like you said I eventually ran into wanting to change the message markup. That's what you get when you have to get things done fast!
|
|
|
I think you should remove the "private function Form($errors = null)" from the contact form class... place that inside another class such as "form_renderer"... and then use aggregation to pass an instance of the contact forms logic to the renderer object.
That would then allow you to update, add new features etc without having to worry about messing up a design and would allow people to add new layouts etc to the contact form as and when they wish without hacking away at the core class.
Kind regards,
Scott
|
|
|
Sweet! Glad I helped someone out. Please send me an IM or PM sometime if you have ANY suggestions.
|
|
|
I'm now using this script for my business website. Exactly what I needed. Thanks!
|
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
|