On Jul 10, 2007, at 3:25 PM, Jim Lucas wrote:
Jason Pruim wrote:
On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote:
Jason Pruim wrote:
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' => '' ),
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.
This is just information that you submit from your form. I just
used static information instead.
I'm also
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.
Those
are the database record number so I know which one to mark as
completed :)
np
Maybe a page is in order to make it make more sense, also,
Would be good
I'm willing
to 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.php
Not 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 ?
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 :)
--Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@xxxxxxxxxx
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@xxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php