Archive for the ‘php’ Category

ABBA - Knowing You, Knowing Me

Thursday, June 26th, 2008

Most recently No Two The Same Inc. asked Iconise to design and develop the microsite for ABBA’s greatest hits album and DVD, GOLD. Iconise needed to create a funky look and feel that also tied in with the color pallet of the album and DVD. Iconise created an interactive flash quiz that integrated with a php back-end. Iconise also designed the emailer based on the micro-site’s look and feel.

 About the ABBA Knowing You, Knowing Me Quiz. 

Take the ABBA Knowing Me, Knowing You Quiz to share and discover some fun facts about you and your friends. There’s 25 questions, and at the end you can send them to as many friends as you like. They’ll get your answer and then they can send theirs back to you!

abba screenshot

Be my Lovefool

Saturday, March 8th, 2008

In collaboration with No Two The Same based in London, England, Iconise was asked to design and develop a Valentine’s Day e-card to promote the release of ‘The Cardigans Best Of’ album for Universal Music.

The Cardigans Love Fool

The concept for the ecard was relatively simple. Send a message to a loved one or friend with a picture of yourself uploaded from your computer. However it was a pretty challenging project to implement. Iconise combined flash (Actionscript 3.0) with some php programing and a mySql back end to create a card that was fun, easy to use and send, and most importantly, secure. With any file upload situation, Iconise made sure that no other files other than .gif’s and .jpg’s could be uploaded on to the server. We also gave the user the ability to drag and zoom the image in and out in order to make sure their face fit properly into the designated area. We also came across a few bugs along the way. For anyone using FileReference keep this mind for mac users!

To see the results click here to tell your loved one what a Lovefool you are.

Iconise designs and develops new official web site for Tim Daniel.

Saturday, March 8th, 2008

Iconise was chosen by Universal Music Group International to design and develop the official website for Tim Daniel, one of the UK’s most successful songwriters.

Tim Daniel Website

It was important that the site visually reflected Tim’s personality and music across to his fans, but the site also needed to be quick to load and easy to update, so Iconise combined the interactivity of flash, php and the Content Management System webEdition 5.0 to create a site that was graphically rich in visuals, quick to load, and easy to update from the road.

To the see the results click here.

a simple way of sending mail with php

Friday, January 26th, 2007

You can use the mail() function in php to gather and send information from a form to an email address.

To use mail(), pass it a destination email address, a message subject, and a message body.

<?php
mail(’example@example.com’,'My Message Subject’,'My Message Body’);
?>

You can also assign variables in the mail() function.

<?php

$emailaddress = ‘example@example.com’;
$messagesubject = ‘This is my subject’;
$messagebody = ‘This is my message body’;

mail($emailaddress,$messagesubject,$messagebody);

?>

If you wanted send information from a form try this.

Your form should look something like this:

<form method=”post” name=”formname” action=”sendform.php”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”3″>
<tr>
<td>Name:</td>
<td><input name=”name” type=”text” id=”name”></td>
</tr>
<tr>
<td>Street Address: </td>
<td><input name=”address” type=”text” id=”address”></td>
</tr>
<tr>
<td>City:</td>
<td><input name=”city” type=”text” id=”city”></td>
</tr>
<tr>
<td>Province/State:</td>
<td><input name=”province” type=”text” id=”province”></td>
</tr>
<tr>
<td>Postal Code/ZIP: </td>
<td><input name=”postal” type=”text” id=”postal”></td>
</tr>
<tr>
<td>Phone:</td>
<td><input name=”phone” type=”text” id=”phone”></td>
</tr>
<tr>
<td>Fax:</td>
<td><input name=”fax” type=”text” id=”fax”></td>
</tr>
<tr>
<td>E-mail: </td>
<td><input name=”email” type=”text” id=”email”></td>
</tr>
<tr>
<td> </td>
<td><input type=”submit” name=”Submit” value=”Submit”></td>
</tr>
</table>
</form>

The script on sendform.php to process the form should look like this:

<?php

$emailaddress = ‘example@example.com’;
$messagesubject = ‘This is my subject’;

$messagebody .= “Name: ” . $_POST[’name’] . “\n”;
$
messagebody .= “Street Address: ” . $_POST[’address’] . “\n”;
$
messagebody .= “City: ” . $_POST[’city’] . “\n”;
$
messagebody .= “Province/State: ” . $_POST[’province’] . “\n”;
$
messagebody .= “Postal Code/ZIP: ” . $_POST[’postal’] . “\n”;
$
messagebody.= “Phone: ” . $_POST[’phone’] . “\n”;
$
messagebody .= “Fax: ” . $_POST[’fax’] . “\n”;
$
messagebody .= “Email: ” . $_POST[’email’] . “\n”;

mail($emailaddress,$messagesubject,$messagebody);

$URL=”http://www.example.com”;
header (”Location: $URL”);

?>

Note that when you want to combine variables use the .= operator.

Also note that if you want to redirect the page after running the script use:

$URL=”http://www.example.com”;
header (”Location: $URL”);

Creating PHP Breadcrumbs

Monday, February 27th, 2006

Good resources to help create PHP Breadcrumps.

The above samples show how to make simple breadcrumbs from directory names, but sometimes that can get a little messy. Here’s a great link showing how to assign “pretty” labels to directory names.