php - Removing a form field (select) when form submits


Is there a way for when someone selects a field option and submits the form, that the form will then not sure that field anymore?

Basically I'm trying to make an appointment list in with the field and when someone makes an appointment with that specific time, I want that time to disappear so no one else can select it.

Is there a way to do this?




You would need the date and time information stored in the database.

Basically then when loading the form you'd populate only those dates and times that are unused and then when the user submits the form, update the database with the newly selected date/time.

People are also looking for solutions to the problem: php - Cronjobs - can webhoster disable them?


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.