
Any php pros around today?
I'm trying to figure out where I've gone wrong with the following php code. I'm sure it's something basic, as my php skills leave a lot to be desired.

<?php
// Get URL text from address bar
// example --> www.website.com/script.php?url_date1=9-6-2010&url_date2=9-7-2010&url_date3=9-8-2010
$url_date1=$_GET['url_date1'];
$url_date2=$_GET['url_date2'];
$url_date3=$_GET['url_date3'];
// Get the current date (EST), and save it as a variable
date_default_timezone_set('America/New_York');
$current_date = date("n-j-Y");
// Check to see if the current date matches any of the 3 URL dates.
// If so, stay on current webpage (www.website.com/script.php).
// If current date does not match any of the 3 URL dates, redirect to www.website.com/nomatch.html
if ($current_date != ($url_date1 || $url_date2 || $url_date3)) {header("Location: http://www.website.com/nomatch.html");
}
?>
Join the next generation affiliate marketplace today
Google News Press Releases , PM For Details :)
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."