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!
Are there specific dates available to the user to enter for a job? By this I mean are there only certain dates that will be valid such as only days of the month that fall on Monday through Friday? Will you be eliminating holidays as valid entries? How far into the future will the user be able to look for dates? 1 week? 3weeks? 3 months? Or will the current date be the only valid date (Probably not the case)?
I am the employer (user), I am posting a job, now in the Date Available field, i would put in date when I need this position to start, ex. would be 05-31-2002.
My question is how do I make sure that the date can be entered into the form and print out like my date format (05-31-2002), so all date inputed will be consistent?
My solution is that I will have drop down list for my form, there will be 3 fields to input, one is day, one is month, one is year. Day will be number 1-31, month will be 1-12, year will be 2002 -2003, something like that. But how do i do that?
Or if you have better suggestion , please let me know..
Well,
I have everything written to do this and for the same purpose, putting the beginning production date on an order entry form. Seeing how the company I work for normally works Mon. - Fri. we decided to produce a dropdown menu for sales to add the beginning production date to the form only allowing valid dates to be used. On the exception (the shop works Saturday.. etc.) we allowed an override button so that with a password, a user could actually change the date to one not allowed in the option box. We wrote a database insert program in the C programming language and populated a table in the database with all the valid production dates for the next few years eliminating weekends and such. The web page in PHP only shows available beginning production dates that are valid.
Am I on the right track here??? Is this the type of thing you are trying to do?
If you do not care about which dates are shown, I also can help with that.
Direwolf
The script i am doing right now is a simple one, I dont really care what day, month, year the user needs the job to start, it's all depend on the user(employer), he can put down the start date (date available) on saturday or sunday, it doesnt matter. Basically, Date Available is the date telling those job-hunters when the job is available.
I have something like that in my mysql table:
date_available DATE,
So, in order to print date_available properly to show the user(job-hunters), what do I have to do with my form? Drop down menu? Have the users to input date manually?
I have trying to look around online for solution on how to deal with this, but i guess i am out of luck.