php - Value attribute in the option tag is set to 0 even if I add another value
Get the solution ↓↓↓I have a small exercise to write for a uni class.
I wrote this code as a part of a form
<tr>
<td>Payment Type:</td>
<td><select Name="Payment" form="myform">
<option value="" selected></option>
<option value="0">Monthly Payments</option>
<option value="1">Daily Payments</option>
</select>
</td>
</tr>
and when I try to echo the value of the "Payment" on my PHP file, it only shows 0, even if I select Daily Payments. I tried echo on other values and they work just fine.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: an exception occurred in the driver: could not find driver
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.
Similar questions
Find the answer in similar questions on our website.
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.