![]() |
| ||
| expired date validation and session hi...i am doing form for bill redemption, and juz wanna ask is there any function in php used to check for expired date? like current month is march, if user enter due month to be january, then it will be invalid. Any function to detect current date? By the way, i need to pass several variables across pages..i tried session_start() before but seems some hosting or server din support it. I need it because i got two tables in database, which have username in common, so tht i can use the variable to decide which username and insert the data inside the database accordingly. Thanks for the guidance...if any. |
| ||
| Re: expired date validation and session There's no built-in functions exactly for what you want to do so what you need to do is build some code of your own. First take a look at the date/time functions of PHP. If I'm going to check the month against a textual month I would use something like this $st = time(); // gets the current time in unix timestamp I hope that gives you some direction. |
| All times are GMT -4. The time now is 5:32 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC