| Re: Forms and time select |
| by Catzwolf on 2007/10/15 10:05:53 Maybe this thread will be of some help to you: https://xoops.org/modules/newbb/viewtopic.php?topic_id=58596&forum=28&post_id=275018#forumpost275018 ATB Catz |
| Re: Forms and time select |
| by lesage on 2007/10/15 3:12:56 tell me how can i get the selected or entred value? $birth_date = new XoopsFormDateTime(_ST_BIRTH, "birth",15,0); after submitting ,when i try $_POST['birth'] i receive Array as result; |
| Re: Forms and time select |
| by jilong on 2007/7/13 3:34:45 look like the XoopsFormDateTime not really work for my site. when i use this format the result will show as 'array' When i try this XoopsFormTextDateSelect it show me the correct result '1980-3-11', but the problem is everytime when i click into edituser.php the date field will change back 1970-1-1. ![]() is that any other file i need to make a change? |
| Re: Forms and time select |
| by exbanious on 2007/7/12 21:31:27 i should have been more clear.... this works on 2.2.*, but when i just tested it on 2.*, the time seems to work correctly, but the calendar shows up wrong initially. (meaning, it shows default date as 1969)) it did seem to save correctly for me though. on extcal and news. not sure about your situation though. is the calendar date and time displaying correctly when you edit a user's profile? everything after XoopsFormDateTime is using the wrong form elements in your code. try this: le="color: #000000"><?php $dob_text = new XoopsFormDateTime( _US_DOB, 'dob', 15, $xoopsUser->getVar('dob', 'E'))); i think it should work(?) depending on how you have saved the dob data the first time, it won't show up correctly in the calendar unless its was saved as unix timestamp format originally, however it should update the info when it is saved. hope this helps.. |
| Re: Forms and time select |
| by jilong on 2007/7/11 3:17:12 Hi exbanious, how could you save the date and time? Here is the code i call the XoopsFormDateTime on edituser.php I change this from XoopsFormTex, the calendar appear on edit user form, but the date not save, the value display as "Array" Do i need to change more on this? le="color: #000000"><?php $dob_text = new XoopsFormDateTime(_US_DOB, 'dob', 10, 10, $xoopsUser->getVar('dob', 'E'),_US_DOB);
|