Re: [PHP-WIN] $date1 larger then current date?

2007-04-24 Thread Mikael Grön
Try: if ($date1 > $date2) { echo "First date is a later one than Second date"; } else { echo "Second date is the latest."; } It's just as easy as you thought it'd be. Mike Gustav Wiberg skrev: Hi guys! I'm searching for what I thought would be an easy issue comparing dates. I just w

Re: [PHP-WIN] Javascript partially not working

2007-04-24 Thread bedul
>>document.getElementById("Issue").disabled i must see the html result i believe u have error on your html not on the js for example form if you not declare a form name u can't change issue?? can u send to us again with the htm .. and since htm kinda danger to share, would you change the extensi

Re: [PHP-WIN] Javascript partially not working

2007-04-24 Thread Mikael Grön
I actually started looking for one myself, right after I mailed. Haven't found any good ones yet. I'll let you know when I do. Chandar and Bill: I don't like forums. I enjoy using Thunderbird too much. Mike Alf Stockton skrev: Mikael Grön wrote: Alf, it has already been pointed out that this

RE: [PHP-WIN] Javascript partially not working

2007-04-24 Thread Bill Bolte
http://www.sitepoint.com Their forums are pretty good. Bill -Original Message- From: Alf Stockton [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 8:33 AM To: Mikael Grön Cc: php windows Subject: Re: [PHP-WIN] Javascript partially not working Mikael Grön wrote: > Alf, it has

Re: [PHP-WIN] Javascript partially not working

2007-04-24 Thread chandar
Devshed Forums wil be good[http://forums.devshed.com/] thnx/Chandar Alf Stockton wrote: Mikael Grön wrote: Alf, it has already been pointed out that this list is for PHP. That the JavaScripts are supposed to run on a page generated from PHP isn't enough to make it PHP related. Please register t

Re: [PHP-WIN] Javascript partially not working

2007-04-24 Thread Alf Stockton
Mikael Grön wrote: Alf, it has already been pointed out that this list is for PHP. That the JavaScripts are supposed to run on a page generated from PHP isn't enough to make it PHP related. Please register to a JavaScript list and ask your question about JavaScript there. Any suggestions as

RE: [PHP-WIN] Javascript partially not working

2007-04-24 Thread Gustav Wiberg
I agee to Mikaels Gröns comment about Javascript But just for helping out a bit If it is about Javascript and nothing below a certain line works, then it is THAT line that is wrong... document.getElementById("MemberName").innerHTML = ""; Best regards /Gustav Wiberg -Original Message-

Re: [PHP-WIN] Javascript partially not working

2007-04-24 Thread Mikael Grön
Alf, it has already been pointed out that this list is for PHP. That the JavaScripts are supposed to run on a page generated from PHP isn't enough to make it PHP related. Please register to a JavaScript list and ask your question about JavaScript there. Mike Alf Stockton skrev: I include the

[PHP-WIN] Javascript partially not working

2007-04-24 Thread Alf Stockton
I include the attached Javascript file when building my intranet web page using PHP and it partially works. When called the function Done() works fine and the function ClearForm() works up to the line that reads document.getElementById("MemberName").innerHTML = ""; Below that nothing works.

[PHP-WIN] Thanx!

2007-04-24 Thread Gustav Wiberg
For your input about larger-date comparision. I have solved it - I only used mktime and compared the two $date- variables Best regards /Gustav Wiberg

Re: [PHP-WIN] $date1 larger then current date?

2007-04-24 Thread Jarrett Meyer
if (mktime(0,0,0,substr($date1,5,2),substr($date1,8,2),substr($date1,0,4)) > time() ) // if $date1 > server time { //do stuff } I have a few conversions that I use. Our server stores all dates in MMDD (as int) format, so I've got a few handy functions (OsDateToTimestamp(OsDate) and Tim

[PHP-WIN] $date1 larger then current date?

2007-04-24 Thread Gustav Wiberg
Hi guys! I'm searching for what I thought would be an easy issue comparing dates. I just want to know if a date in variable $date1 is larger then current date. I use the format -MM-DD in $date1 and I know how to retrieve the current date and set it in $dat2 But how do I know if $date1>