why the validation did not work & jump to another page?

前端 未结 1 1856
长情又很酷
长情又很酷 2021-01-26 11:32

I wrote a customer_display.php to validate data (only First Name so far), but no matter First Name field is empty or not, the webpage will jump to customer_search.php & did

相关标签:
1条回答
  • 2021-01-26 12:14

    You have no name attribute with the value of 'action', so your update never happens.

    <form action="" method="POST">
        <input type="hidden" value="update_customer">
        <!-- rest of the form -->
    </form>
    

    Edited for clarity.

    0 讨论(0)
提交回复
热议问题