Party Invitation and Guest List
Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/26/d116120905/htdocs/includes/common.php on line 91
Warning: getimagesize(http://www.paulwest.co.uk/img/uploads/party_website.gif) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /homepages/26/d116120905/htdocs/includes/common.php on line 91
My brother and Sister were throwing a joint birthday party and needed a way to manage a guest for the party. We looked at facebook but had issues with different groups and people not on facebook (mainly family members) and adding guest names. It was decided in the end that it was easier to have an open guest list added onto this site with invitations sent out with the URL on. So I designed the invite. It was tricky to come up with a design my sister is into mainstream music, quite a giry girl. My brother on the other hand is emo into rock, trying to find a style that would suite both was tricky. I decided quite early on to go with a nightclub invite style with strong colours with the added rock feel of the broken up gritty large text (Font is Base 02). I personalized the invite by having a stylized picture of them both.
For the website I used the image from the invite as the header image to mirror up the site to the invite. I carried on the style through the whole page making the form and guest list quirky and brightly coloured.
For the functionality of the site I created a quick form that submitted to a page that inserted into a database, checking for MySQL injection attacks and SPAM and any swearing. I then redirected back to the page with added $_GET data of the person and guests name. Within the PHP I check for the variables $name and $guest if they are set I show a thank you message and explain they have been added to the list.
For the guest list when selecting from the database I separate them by selecting only one host I then go through each person using a foreach and check to see if ‘guest’ is not blank and add the plus one if there is one.
$guests = execute_query($sql);
$num = count($guests);
$rg = 0;
if($num < 1) {
echo "<br /><br /><p>Rachel has no freinds!</p>";
} else {
echo '<ul>';
foreach($guests as $guest) {
echo '<li><span>' . strtoupper($guest['name']) . '</span></li>';
$rg++;
if($guest['guest'] != "") {
echo '<li> + <span>' . strtoupper($guest['guest']) . '</span></li>';
$rg++;
}
}
echo '</ul>';
echo '<p>Total: ' . $rg . '</p>';
}
Published 28.09.09

News Feed