wopopd83 Posted February 19, 2010 Share Posted February 19, 2010 I'm pretty much a newbie to PHP (4 months). I have a very simple question that has a very simple answer I'm sure. I have a PHP generated calendar that I want to use so that customers can schedule their own appointments. Each day in the month has an anchor to link to a sheduletime.php page. How do I capture the day number when the anchor is clicked on? Like I said I'm sure there is a simple function that I can use to do this. I have tried to find another post regarding this however can't seem to find one. Please either direct me to a post regarding this or simply show me a snippet of the code that I can use. I appreciate anybody's help. Thanks Quote Link to comment Share on other sites More sharing options...
Psycho Posted February 19, 2010 Share Posted February 19, 2010 You need to generate unique links for each day by adding a variable to the url. I'd suggest using a tmestamp. Example: <a href="schedule.php?date=56438547">5</a> Then on the page schedule.php you can reference the value using $_GET['date'] Quote Link to comment 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.