Jump to content


Photo

PHP Date Entry question


  • Please log in to reply
4 replies to this topic

#1 laide234

laide234
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 08 August 2006 - 04:54 PM

I want users to enter dates into a database, but I would like to control the client side entry with some kind of calendar. can anyone help?

#2 logged_with_bugmenot

logged_with_bugmenot
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts

Posted 08 August 2006 - 05:23 PM

More info plz...I don't understand. Are you familiar with timestamps?
Earn money with Google AdSense

#3 mewhocorrupts

mewhocorrupts
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts
  • LocationParker, CO

Posted 08 August 2006 - 05:42 PM

Are you asking how to create a calendar script, because I'm sure a quick google search would yield something that you could modify to fit your needs.
-mewhocorrupts

#4 laide234

laide234
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 08 August 2006 - 06:31 PM

You (mewhocorrupts) are right. I was looking for something like this

http://www.softcompl...ndar/demo1.html

I was just wondering if there was another/easier way,  like get_calender, to do this.

#5 mewhocorrupts

mewhocorrupts
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts
  • LocationParker, CO

Posted 08 August 2006 - 11:18 PM

It's more than possible to do it in PHP, or with a combination of some heavier JS and PHP.  What would be easier, though, is to use the script from the site that you provided above.

In the source file for the calendar:
<!--
<html>
.....

Title: Tigra Calendar
URL: http://www.softcomplex.com/products/tigra_calendar/
Version: 3.2
Date: 05/18/2006
Feedback: feedback@softcomplex.com (specify product title in the subject)
Note: Permission given to use this script in ANY kind of applications if
   header lines are left unchanged.
Note: Script consists of two files: calendar?.js and calendar.html
About us: Our company provides offshore IT consulting services.
    Contact us at sales@softcomplex.com if you have any programming task you
    want to be handled by professionals. Our typical hourly rate is $20.
-->

.....
</html>

Just leave the headers intact, and have at it.  Nice find, by the way.  I bookmarked this one.  And if you're looking for something a little less visually appealing -- a script to just get the job done -- you could probably strip this one down to barebones and use it that way.

Also, try this one out:
http://www.stargeek....ript=5&cat=blog
-mewhocorrupts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users