Syntax Error

Parse error: syntax error, unexpected $end in

Follow me on TwitterRSS Feeds

  • Home
  • About

Creating a contact form using classes part 1

Sep 20th

Posted by clutz in php

No comments

Table of contents for Contact Form
  1. Creating a contact form using classes part 1

Recently I was asked at work to build a PHP email contact form that could do some specific things.

  • Allow the user to choose different departments/emails to send their submission to
  • Allow the user to input specific things into boxes More >
classes, contact form, email, PHP, php mail, tutorial

Autoloader basics

Aug 26th

Posted by clutz in php

2 comments

Since this is my first post I’ll keep it nice and simple. While there’s a perfectly good autoloader here it’s quite simple and can be expanded.

A basic autoloader is this:

function __autoload($class_name) {
require_once $class_name . '.php';
}

As is said this is pretty basic, but it gets the job done, but this will load all the classes from a More >

Autoloader, classes, code samples, OOP, PHP
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • php (2)
    Autoloader classes code samples contact form email OOP PHP php mail tutorial
    • September 2010 (1)
    • August 2010 (1)
    • Autoloader basics (2)
    • Creating a contact form using classes part 1 (0)
    • clutz: The authorities already know what I'm doing. They might not like it but we've come to...
    • Ste: Eh? Are you some kind of witch or something? I'm going to report you to the authorities.
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
RSS Feeds XHTML 1.1 Top