Function: Show date in visible output

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Anterpa
Forum Newbie
Posts: 2
Joined: Wed Aug 13, 2003 9:10 am

Function: Show date in visible output

Post by Anterpa »

Hello,

I would like to give the user a graphical format for the date, and if he clicks on it, it will be added in the field or directly in the database.
We all know that user enter the wrong date format, so I want to give them this in calendar stylw.

I already had this for my other project in asp and hoped to find also something for php, but I could not.

Is there any existing function or class? Or do I have to write it on my own.

USER:
Select date of expiration: [here comes the graphical thing]

User clicks on e.g August 19 and this will be added in the database or shown in the webpage.

Thanks a lot

Antoine
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Any idea of using

Code: Select all

<img src="01.jpg" onclick="submitform(01)">
<img src="02.jpg" onclick="submitform(02)">
...
<img src="31.jpg" onclick="submitform(31)">
out of the question? (Using images to send forms...) That way, the user has limited options (click only) but you still can get the day,month,year,whatever transfered...
Anterpa
Forum Newbie
Posts: 2
Joined: Wed Aug 13, 2003 9:10 am

Post by Anterpa »

Hello,

thanks, but I think it is a misunderstanding.
I don't need the current date to send.

Just click on your time on the sesktop and a date window will popup. I also want to have a little icon, which will display one month and this can be chosen.

http://mrbs.sourceforge.net/mrbs/day.ph ... &year=2003
like here in the upper right.
But instead of these pulldownmenus in the upper middle:

13 Aug 2003 goto


I want there an icon and it will display one month. There I click on 13 Aug and it will be dispayed.

Thanks
Antoine
Post Reply