nashsaint Posted February 14, 2009 Share Posted February 14, 2009 has any used this script? How do i get the value of user's selection? i tried reading the documentation but didn't find the solution. I just want to get the value and pass it to a variable for use with sql queries later. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/145174-yui-calendar/ Share on other sites More sharing options...
RichardRotterdam Posted February 14, 2009 Share Posted February 14, 2009 This should be under javascript though but if I read the documentation on http://developer.yahoo.com/yui/calendar/ and that is the calendar you're using, then simply put php between it var myCalendar = new YAHOO.widget.Calendar("myCalendar", "myCalendarContainer"); myCalendar.cfg.setProperty("selected","<?php echo($date);?>",false); myCalendar.render(); You would have to format the date right if this is what you mean Quote Link to comment https://forums.phpfreaks.com/topic/145174-yui-calendar/#findComment-762171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.