can somone please tel me what's wrong with this statement...
Posted: Thu Oct 19, 2006 4:00 pm
Code: Select all
if (isset($_POST['day']) && isset ($_POST['month']) && isset ($_POST['year']) && isset ($_POST['heading']))[/quote]
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if (isset($_POST['day']) && isset ($_POST['month']) && isset ($_POST['year']) && isset ($_POST['heading']))Code: Select all
<?php
if (isset($_POST['day']) && isset ($_POST['month']) && isset ($_POST['year']) && isset ($_POST['heading'])) {
}
?>Code: Select all
if ( isset($_POST['day'], $_POST['month'], $_POST['year'], $_POST['heading']) )Code: Select all
if (!checkdate($day, $month, $year)) //line 34
echo 'wrong date';Code: Select all
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];Code: Select all
if ( !checkdate((int)$_POST['day'], (int)$_POST['month'], (int)$_POST['year']) ) {
echo 'wrong date';
}Learn something new everyday.. coolvolka wrote:
p.s.: can also be written asCode: Select all
if ( isset($_POST['day'], $_POST['month'], $_POST['year'], $_POST['heading']) )