Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6552705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:29:32+00:00 2026-05-25T12:29:32+00:00

I am building a form where users must select a time interval, from day

  • 0

I am building a form where users must select a time interval, from day to day OR month to month or year to year or even a specific day in a month in a year to another date in time…I would use a JS calendar for it but I am unsure of what I would do to check if that specific date has arrive yet or not.

The user is suppose to choose a starting date and an ending date, the user makes certain changes once and those changes apply for the time interval a user has chosen, so once the end date is reached the changes no longer apply and the script is reset to its default…

These changes can be applied to the program, code in the program etc…But basically the program would allow these changes from the interval in time the user chooses on the form but once the date is reached everything is reset to default…

My original idea was to use PHP’s date(‘W’) function in order to get the start and end time from the user and store it, then have my script look up the date everyday to see if the end date has reached yet or not. Then my other ideas was to use JS’s calendar pop up to get the start and end date and have some sort of script look up the date everyday to see if the deadline has reached yet or not..But all these arent very reliable ways or methods so perhaps someone here has more experience with this…Cron jobs I am not very experienced with but I am not so sure how I would use php or js in the back end of my form to set a cron job for this..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:29:33+00:00Added an answer on May 25, 2026 at 12:29 pm

    I’d suggest you use a database to store your modified code / date range. You don’t need to worry about a cron job – just place a bit of code at the beginning of your script to check each time its run which version it should use.

    SELECT * FROM scripts WHERE user_id = .... 
    AND start_date < NOW() AND end_date > NOW()
    

    Check for a current change in the database; if it exists, load up that modified script instead of the normal one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Outline I'm building a form for a specific page, where users can make suggestions
I'm building a Zend form that has a dropdown/select menu populated with data from
I'm building a price estimator form, which uses jQuery to manipulate select menus. Basically,
I am building a form, where required field validation must have been checked. I
I'm building a multistep form and I don't want users to lose any storaged
I'm building a form that will allow my site's users to set a secret
I'm building an application where users can add, edit and delete users from the
I'm building form validation controls for our C# ASP application. The bulk of the
I'm building a form with php/mysql. I've got a table with a list of
I am building a form in Zend Framework 1.9 using subforms as well as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.