Received: from cooee.cybersydney.com.au (cooee.cybersydney.com.au [203.25.173.1]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2Q0THw84483 for ; Sun, 25 Mar 2001 19:29:17 -0500 (EST) (envelope-from csmith@squiz.net) Received: from smith.squiz.net (pc163.cybersydney.com.au [203.25.173.163]) by cooee.cybersydney.com.au (8.8.7/8.8.7) with ESMTP id KAA11685; Mon, 26 Mar 2001 10:32:34 +1000 Message-Id: <4.3.2.7.2.20010326102351.00bb1b70@203.25.173.1> X-Sender: csmith@203.25.173.1 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 26 Mar 2001 10:28:31 +1000 To: Paul Joseph McGee , pgsql-php@postgresql.org From: Chris Subject: Re: Input Forms In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200103/55 X-Sequence-Number: 240 >Hi > >I have a table in my database which has a column of type date. When I >retrieve the date from the database, I brake it up into seperate >variables, as in $day, $month, $year. My problem is that I give the user >the chance to change the date that is in the database so I have 3 >input/text fields that the user change select the day, month and year. BUT >I want the selected day, month, year to be the one that is in the database >so the user will then decide if that date is alright. >I don't know how to do this, would it be javasript, and if so would it be >something like onload??? You can do it with PHP.. as you're going through the select list, do a check - # For the days list box.... for ($days = 1; $days < 32; $days++) { echo "