ERROR: No name indicated.
“;
} elseif($_POST[‘number’]==””){
echo “
ERROR: No phone number indicated.
“;
} elseif($_POST[’email’]==””){
echo “
ERROR: No e-mail address indicated.
“;
} elseif($_POST[‘ic’]==””){
echo “
ERROR: No IC number indicated.
“;
} elseif($_FILES[$fieldname][‘error’] > 0) {
echo “
ERROR: File upload error. Either file size too large, or no file attached.
“;
} elseif(@is_uploaded_file($_FILES[$fieldname][‘tmp_name’])== FALSE) { //check error condition of this line
echo “
ERROR: Not a HTTP upload.
“;
} elseif(@getimagesize($_FILES[$fieldname][‘tmp_name’]) == FALSE) {
echo “
ERROR: Only image uploads are allowed.
“;
} else { //no errors
// make a unique filename for the uploaded file and check it is
// not taken… if it is keep trying until we find a vacant one
$now = time();
$username = @substr($_POST[’email’], 0, @strpos($_POST[’email’], ‘@’));
$Filename = $now.’-‘.$username.’-‘.$_FILES[$fieldname][‘name’];
while(file_exists($uploadFilename = $uploadsDirectory.$Filename))
{
$now++;
}
// now let’s move the file to its final and allocate it with the new filename
move_uploaded_file($_FILES[$fieldname][‘tmp_name’], $uploadFilename);
// If you got this far, everything has worked and the file has been successfully saved.
// We are now going to redirect the client to the success page.
echo “
SUCCESS: Your entry has been submitted!
“;
$to = “kennysiasms@gmail.com”;
$from = $_POST[‘name’] . ” <" . $_POST['email'] . "> “;
$subject = $_POST[‘name’] . ” — ” . $Filename;
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: ” . $from;
$message = “Name: ” . $_POST[‘name’] . “\n”;
$message .= “IC: ” . $_POST[‘ic’] . “\n”;
$message .= “Number: ” . $_POST[‘number’] . “\n”;
$message .= “IP: ” . $ip . “\n”;
$message .= “E-mail: ” . $_POST[’email’] . “\n”;
$message .= “Malaysian: ” . $_POST[‘malaysian’] . “\n”;
$message .= “Caption: ” . $_POST[‘message’] . “\n”;
$message .= “File: http://www.kennysia.com/uploaded_files/” . $Filename . “\n”;
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
} // no errors
} else { // if submit button is not pressed, then….
?>
The Mister Potato TV ad I’ve been waiting for has finally gone to air.
To celebrate my glorious three seconds worth of appearance on national TV acting like a giant oversized dolphin, Mister Potato is giving away a chance for one lucky kennysia.com reader and a friend to win and all-expense paid trip to Bangkok.
But this ain’t your typical boring free trip giveaway.
Because on top of a trip for two to Bangkok, there’s also a special bonus added to this prize package.
You see, we are not gonna just put you on an airplane, jet you out and throw you into some dingy hotel in some God forsaken corner of Bangkok for 4 days. To fully savour the best of South-East Asia’s mecca of shopping, spa, food, culture and nightlife, you’re gonna need someone knowledgable to show you around Bangkok.
Which is why we have arranged for tour guide to not only accompany you on this fantastic journey, your tour guide will personally ensure that you do have a whale of a time there as well.
Alas, you can’t just have any tour guide. You need a tour guide that knows Bangkok intimately. So intimate, that he’d probably soaked himself for 3 hours in Bangkok river before just to tell you how it felt like.
That tour guide is of course none other than…
ME!
Yes, apparently Kenny Sia has turned into a contest prize.
If you win this contest, you and a friend could win a trip to Bangkok. And I, the poo-water-swimming potato-chip-eating dolphin will be there to act as your personal tour guide.
Best of all, this trip is all expense paid thanks to Mister Potato. And heck, we’ll even give you some pocket money for shopping at Chatuchak Weekend Market.
In total, this prize package is worth RM5,000. And with me as your guide, I promise you it will be one holiday unlike any other.
How do you win this prize?
All you gotta do is upload a picture imitating me eating a Mister Potato chip like this.
This contest is open exclusively to kennysia.com readers.
Your photo doesn’t necessarily have to be yourself eating the Mister Potato chip. It could be a human, an animal or an inanimate object. It doesn’t matter. If you could con your 5-year-old nephew into doing this, even better.
The most important thing is that your photo has to be creative and funny.
The Mister Potato packaging must clearly be visible, and you must upload the photo using the form below or e-mail it to me at contest@kennysia.com before 11:59pm on the 8 June 15 June.
Of course, you must agree to terms and conditions, judges decisions are final and all the legal bla-bla-blas apply.
Hey, the City of Angels awaits the winner. ๐
|
Terms and Conditions:
-
This contest closes exactly at 11:59pm on the
8 June 200815 June 2008. -
If you upload your photo even one second late, you’re screwed.
-
This contest is open to all Malaysians residing in Malaysia only.
-
If you are a Malaysian living overseas, you’re screwed.
-
The prize is for a trip for two to Bangkok, Thailand for 4 days 3 nights only with Kenny Sia as the personal tour guide, bodyguard, photographer, and friend.
-
The contest winners must agree to have their photos and their trip published on kennysia.com
-
By taking part in this contest, you agree to transfer the rights of your photo to Mister Potato
-
The budget for the prize package is a maximum of RM5,000.
-
If there any leftovers in the budget after accounting for all the essentials, the winners will be given those leftovers as shopping money.
-
Please note that Kenny Sia will not be carrying your shopping bags at Chatuchak Market.
-
Winners will be chosen based on how creative and or the submission is.
-
Both myself and a representative of Mister Potato will be the judge for this contest. Our decisions are final.
-
The winner will personally be notified by me, and I shall make all travel arrangements with the winner to decide a schedule most suitable to all of us.
-
All photos uploaded might be used on kennysia.com
-
Why are you reading these fine print anyway? No one bothers with it most of the time.
-
There’s really nothing important for you to read here.
-
Wow, you must be really bored huh?
Terrorists bombed Bali in 2002. 3 years later, terrorists bombed Bali again in 2005.
This year in 2008 and I am in Bali. I think I’m gonna have a blast.