Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Tying PHP values to Genreated $_POST Value
ScotDiddle
Member

Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
posted on 3/10/2008 at 07:19 PM
Tying PHP values to Genreated $_POST Value


Hi Folks,

My application has anywhere from 1 to 28 calendars generated by PHP. ( Single DB query, or 9 sets of 3 ). The 28 calendars each have a unique name... ( ALL, AOR1, AOR1_START_DATE, AOR1_END_DATE, FAF1, FAF1_START_DATE, FAF1_END_DATE, etc...) but when I var_dump($_POST) I see names like:

[datetime_0] =>
[datetime_1] =>
[datetime_2] =>
[datetime_3] => 28-Jan-2008
[datetime_4] => 31-Dec-2007
[datetime_5] => 10-Jan-2008
[datetime_6] => 22-Jan-2008
[datetime_7] =>
[datetime_8] =>
.......
[datetime_27] =>


in the above case, two "Start/End" combinations were selected.

How do I tie my Calendar names back to the $_POST names ?

Any number of the Calenders may be ( but don't have to be ) selected by the user... The only option they don't have is to not select any, and figuring that one out is a no-brainer.

Please advise.

Thanks for any and all help / suggestions / hacks.

Scot L. Diddle, Richmond VA
View User's Profile View All Posts By User U2U Member
ScotDiddle
Member

Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
posted on 3/11/2008 at 10:58 AM
Tying PHP values to Genreated $_POST Value [SOLVED]


Hello Fellow Tigra Calendar Enthusiasts !

It's amazing what one can learn if you only read the supplied documentation...

http://www.softcomplex.com/products/tigra_calendar_pro/docs/#udca

It's simple to do what I wanted; just add:

'controlname': '$selectedSysID', // or whatever php variable name you want...

to your calender definition, and you get the desired result.

Note that I got away with placing the PHP var name inside of single quotes
because I defined my calendar using HEREDOC syntax.

Vis.:

Name : $_POST

Array
(
[dateSel] => on
[RangeSel] => off
[AOR1] => 01-Jan-2008
[AOR4] => 04-Jan-2008
[AOR7] => 07-Jan-2008
[AOR2] => 02-Jan-2008
[AOR5] => 05-Jan-2008
[FAF1] => 08-Jan-2008
[AOR3] => 03-Jan-2008
[AOR6] => 06-Jan-2008
[ODM1] => 09-Jan-2008

)

Hope this helps someone else.

Scot L. Diddle, Richmond VA
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004