1

I have a problem, I am developing a system and I need an order status change to take place, however this change has to be done with select and option and as soon as the person sets the new status of the order she does an update right in my database, how can I do this? do i have to use javascript?

my code:

<form action="" method="post">
                  <div class="form-group">
                      <select class="form-control" name="select">
                        <option>Awaiting</option>
                        <option>In analysis</option>
                        <option>Payment declined</option>
                        <option>Payment confirmed</option>
                      </select>
                    </div>
                </form>

Remembering that I have all the saving logic, I just don't know how to save the data without a submit button, just changing the select options.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.