•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 397,817 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,620 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3306 | Replies: 3
![]() |
•
•
Join Date: Apr 2007
Location: NORAD
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Duke Motherf***in" Nukem will only allow 18 and above on his site. It seems like my html page is correct and my php is the problem. Anyone have any answers they would like to share with me? MAY JUSTICE REIGN SUPREME!!!!!
<?php
$month = $_REQUEST['bmonth'];
$day = $_REQUEST['day'];
$year = $_REQUEST['year'];
$this_day = date(d);
$this_month = date(m);
$this_year = date(Y);
$day_val = $this_day - $day;
$month_val = $this_month - $month;
$year_val = $this_year - $year;
if($year_val >= 19) {
header('Location: http://www.mistysxxxgirls.com/Tour/Tour1.html');
}
if($month_val >= 0) {
header('Location: http://www.mistysxxxgirls.com/Tour/Tour1.html');
}
if($day_val >= 0) {
header('Location: http://www.mistysxxxgirls.com/Tour/Tour1.html');
} else {
header('Location: http://www.mistysxxxgirls.com/notvalidbday.html');
}
?>
Last edited by stymiee : Apr 10th, 2007 at 10:34 am. Reason: removed vulgarities
dude you should remove the three conditions and put em in one condition so the code should look something like this
<?php
$month = $_REQUEST['bmonth'];
$day = $_REQUEST['day'];
$year = $_REQUEST['year'];
$this_day = date(d);
$this_month = date(m);
$this_year = date(Y);
$day_val = $this_day - $day;
$month_val = $this_month - $month;
$year_val = $this_year - $year;
if($year_val >= 19&&$month_val >= 0&&$day_val >= 0) {
header('Location: http://www.mistysxxxgirls.com/Tour/Tour1.html');
}
else {
header('Location: http://www.mistysxxxgirls.com/notvalidbday.html');
}
?> Last edited by w_3rabi : Apr 10th, 2007 at 6:18 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- age advancing script? (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: Parse Error Assitance Needed
- Next Thread: PHP Ajax Search


Linear Mode