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 6919377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:58:56+00:00 2026-05-27T09:58:56+00:00

I have a pretty basic page that shows every five minutes of the day

  • 0

I have a pretty basic page that shows every five minutes of the day (12:00, 12:05, 12:10, etc). Next to each time is a dropdown <select> with the numbers 1-9. The name of the <select> is the name of the time it corresponds to. The user selects one of the numbers, goes to the next, selects a number, etc. until they get to the bottom and hit submit.

In the database table, each time of the day has its own row, with another field for the number.

How can I submit this form and have it insert the number based on the time of day to the proper row? I can’t wrap my head around this for some reason. I don’t even need to do validation. This is not a live website.

  • 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-27T09:58:56+00:00Added an answer on May 27, 2026 at 9:58 am

    I think the name of the select should be times[] and the value should be the time.

    so in php you can loop through the times[] array and get the row that corresponds to its value. Then update the count accordingly.

    <select name="times[]" multiple>
      <option value="19:00">1</option>
      <option value="19:05">2</option>
    </select>
    

    In php psuedo code

    foreach ($_GET['times'] as time) {
      *sanatize
      select row where time = time
      update count
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK - I have a pretty basic page that I'm trying to keep as
I have a pretty basic question that confuses me for some strange reason. I
I have a pretty straight forward page tab app that can be added to
Pretty basic problem here. So I have a Java package that I have created
I have a pretty basic HTML page. The code looks like the following: <body>
I have a pretty basic java applet that allows users to use a signature
I have an application that generates some pretty basic reports. I have installed the
I have a script that runs through a multi-level array and each time calls
I have a pretty basic jquery mobile page, it's 3 data-role:page divs in one
I have a page that creates a table using backbone.js. each table row is

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.