Re: Another simple question (Probably)
| From: | Jason Pruim | Date: | Tue, 10 Jul 2007 19:33:03 +0000 |
| Subject: | Re: Another simple question (Probably) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258568@lists.php.net to get a copy of this message | ||
On Jul 10, 2007, at 3:25 PM, Jim Lucas wrote:
Jason Pruim wrote:Yes, the text box that is currently showing up under "Day to Complete" is the one that will have the date entered as MM/DD/YY then that info will be displayed in the "Reschedule Date" field. Once I can get it storing the date correctly I want to make it show up if it's not been completed, from the date that it is supposed to have been done, until it is completed :)On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote:This is just information that you submit from your form. I just used static information instead. I'm alsoJason Pruim wrote:Okay, I think I see where you are going here, But my question is how can I set the date dynamically? The context that this is being used in is to store a date of the NEXT time the task is needing to be done.here is the print_r($_POST); Array ( [tasks] => Array ( [31] => Array ( [txtReschedule] => 07/07/08 [chkDone] => 31 ) [39] => Array ( [txtReschedule] => 07/08/08 [chkDone] => 39 ) [34] => Array ( [txtReschedule] => 07/09/09 [chkDone] => 34 ) [36] => Array ( [txtReschedule] => ) [35] => Array ( [txtReschedule] => ) [32] => Array ( [txtReschedule] => ) [33] => Array ( [txtReschedule] => ) [37] => Array ( [txtReschedule] => ) [38] => Array ( [txtReschedule] => ) ) )ok, then from this, I assume that you are checking to make sure that [chkDone] is set when you loop through the data. something like this should do the trick <pre><?php $tasks = array (31 => array( 'txtReschedule' => '07/07/08', 'chkDone' => 31 ) , 39 => array( 'txtReschedule' => '07/08/08', 'chkDone' => 39 ) , 34 => array( 'txtReschedule' => '07/09/09', 'chkDone' => 34 ) , 36 => array( 'txtReschedule' => '' ),not sure why you have the "31", "39", "34", "36" numbers in there?because that is the data that you posted from your print_r($_POST) that I asked for I reformatted it to understand the structure of it. Thoseare the database record number so I know which one to mark as completed :)npMaybe a page is in order to make it make more sense, also,Would be good I'm willingto post all the code, but don't want to litter the list with a whole bunch of unnecessary info.Not needed.HTTP://www.raoset.com/tests/ticklers/viewall.phpNot sure what I am looking for. Is the "Day to complete" column the one that needs to have the date entered into it formatted as mm/dd/yy ?
-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.com--Jim Lucas "Some men are born to greatness, some achieve greatness,--Jim Lucas "Some men are born to greatness, some achieve greatness,--Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comand some have greatness thrust upon them."Twelfth Night, Act II, Scene Vby William Shakespeareand some have greatness thrust upon them."Twelfth Night, Act II, Scene Vby William Shakespeare