background preloader

PHP

Facebook Twitter

Automatically Generate a Photo Gallery from a Directory of Images. Two years ago Chris Coyier wrote an outstanding tutorial detailing how you can generate a photo gallery based on the images within two directories: a thumbnails directory and an originals directory.

Automatically Generate a Photo Gallery from a Directory of Images

I've decided to take his tutorial a step further by showing you how to generate thumbnails for the gallery using PHP. I've also implemented a MooTools lightbox: Smoothbox. The following code will show you how to create a beautiful photo gallery by simply dumping your photos in a directory. The CSS The images/links will be floated next to each other. The PHP: Utility Functions We'll use three utility functions to make the system work: get_files (retrieves all of the files in a given directory), get_file_extension, and make_thumb (generates a thumbnail image from a source image). The PHP: Setting and HTML Generation The first step is to define a few simple settings which will dictate image paths, the width by which all thumbnails will be created, and the number of images per row. That's it! Older. 6 Great PHP Form scripts to make your forms awesome. Forms.

6 Great PHP Form scripts to make your forms awesome

Big or small, they could give you a headache. Sometimes I just want to avoid all that and wish everything would be easier. Today, I am going to present you with some scripts that will help you build better and more usable forms with a few click or drag and drops. These scripts are not free, but you can get a bunch of features for a few bucks. Build a Neat HTML5 Powered Contact Form. In this tutorial, we are going to learn how to create a swanky HTML5 AJAX powered contact form.

Build a Neat HTML5 Powered Contact Form

The form will use some of the new HTML5 input elements and attributes, and will be validated using the browser's built-in form validation. We will use jQuery and Modernizr to help out with the older browsers, and PHP on the server side to validate the input. Step 1: Getting Started To begin, we need to setup our directory and files. To get started, I highly recommend the HTML5 boilerplate. For more information on the HTML5 boilerplate check out this guide on Nettuts+. Once downloaded and unpacked, delete everything but index.html and the css and js folders. Free PHP FormMail script : Form processor : Form mailer. Free (D-I-Y setup) Tectite FormMail is a PHP form to email processor for all HTML web forms, and is ideal for spam-free contact forms.

It's completely free for all use and open source! Download and set it up for your website using our online documentation. Low-cost Wizard Save time and effort and get started quickly with a low-cost subscription to our Configuration Wizard. Anti-spam FormMail has automatic anti-spam processing that keeps form spam out of your inbox. Secure Tectite FormMail has a long history with no serious security vulnerabilities - a major reason to select the right PHP form processor.

Support & Development You can purchase guaranteed support from the authors and get a real response from a real person! Features FormMail has an extensive and growing list of features. Special Requirement? PHP Form Processors Scripts - Free, commercial and open source scripts. PHP Forms - The best form creator & processor solution since 2003. Form Processing with PHP - Lesson 1.

Index Lesson << Prev 1 2 3 4 5 6 7 Next >> We're going to start simple here.

Form Processing with PHP - Lesson 1

Note that it's wise to build in some precautions to prevent abuse by those who would use your server to send bulk unsolicited e-mail marketing messages (SPAM) and very likely get your site pulled. You may also want to build in some validation of the user's input. We'll cover those things in later lessons. First, we just want to illustrate sending a simple e-mail so that you learn the concepts involved. TIP: Servers are configured to only parse files with specific file name extensions. Sending an e-mail with PHP is as simple as: mail("recipient@domain.com", "This is the message subject", "This is the message body"); That's pretty painless, isn't it?

<form name="form1" method="post" action="<? The astute among you may notice that the form is set to submit itself to the same page upon which the form resides. Here's a complete example that you can run to test. So what does this page do? $me = $_SERVER['PHP_SELF']; <? The PHP Resource Index: Complete Scripts: Form Processing. PHP Form Mail Script. Contact Form that's Simple & Free Form To Email. Form Processing Open Source Software Scripts CMS PHP ASP NET PERL CGI JAVA JAVASCRIPT. Easy-to-use HTML form builder script that provides simple and flexible way to create HTML forms and also validate different types of fields, using embedded ApPHP DataValidator.

Form Processing Open Source Software Scripts CMS PHP ASP NET PERL CGI JAVA JAVASCRIPT

Developer: apphp License: GNU Lesser General Public License (LGPL) Operating System: Web.