popup calenders really have nothing to do with PHP. they are typically generated via client-side code (javascript/HTML) and simply auto-fill a form field which is then submitted to PHP as normal. do a google serach of "popup calender". i'm there are tons already out there.