For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > timeOptions and dateOptions methods for FormBuilder :)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author timeOptions and dateOptions methods for FormBuilder :)
pear@electroteque.org

2005-05-10, 8:56 am

Ok for the life i me i couldnt find these in the docs, I had to sift
through the API luckily its in PHP :)

I now have my time and dates with emptyoptions which are set as NULL, as it
was causing alot of issues, especially when i was to use it for searching
(required not null fields i'll get to in a sec).

Here is how i did it.

in the do

function timeOptions(){return array('addEmptyOptions'=>true);}

Now my big question, how can i set global for a certain page that no fields
are required especially for not null fields. This is important for a search
form where i want to build the entire form but only make a few fields as
required. I'll be going through the code if it requires tweaking ...
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com