Post details: Simple Email Contact Form

07/25/05

Simple Email Contact Form

A recent forum post i read at UBP revealed that there really wasn't a simple, easy to use, adfree way to allow people to send you an email message from your website available to the average web designer. So I decided to put an end to that with the Ambglb Mailer, written with simplicity in mind, you can have this up and running by just copying and pasting then adding your email address and band name. More advanced designers can easily customize the page to fit in even closer to the site design, by adding graphics and nav menu, but do remember that it is just a simple contact form and all its job is to send messages so simplicity and ease of use trumps the use of "pretties". Ok so enough yapping and on to the code.

Install Instructions
all you have to is copy and past the entire code to a new file, name it what ever you want, just make sure it has a .php extension.....i added a few setting that can be edited to help customize it somewhat to your sites...
when changing the settings make sure you leave the text enclosed within the " " or it won't work, also make sure you leave the // that mark comments in as well...

the only 2 settings you have to change are
$email = "email@domain.com" ;
just switch out to the email addy you want the form sent, so for me i would change it to
$email = "staff@basscrawler.org" ;

and the
$bandname = "Bandname" ;
which for me would be say
$bandname = "Basscrawler" ;

right now the script is set to return a link to your home page, (what people see when they type in www.yourdomain.com)
if you want to change it, simple swap the / out to the url of the page you wish, making sure you add the http:// if you don't understand directory shorthand
$weburl ="/";

the $text and $confirm are pretty self explain its simply the text that you see

the last 3 are the color settings of the page background, text color, and table outline
make sure you use the hex color codes to change.....

you can view the default version fo the form by clicking here

you can get the source code by clicking here

if your browser doesn't allow viewing of text files, just right click and save target as....you can either save it as a text file adn copy and paste or save it as a php file and upload that directly to your server.

Permalink

Comments:

No Comments for this post yet...

Comments are closed for this post.

The Online Musician

Learn the ins and outs of online band promotion, from building a website to mass marketing campaign guides and everything in between

Syndicate this blog XML

What is RSS?

powered by
b2evolution