inserting data into mysql database using php

后端 未结 7 670
生来不讨喜
生来不讨喜 2020-12-22 01:24

I have a php order form named (order.php) and when the user clicks the (submit button \"Next Step\") it takes him to another page called (confirm-order.php)

The (con

7条回答
  •  难免孤独
    2020-12-22 01:40

    Well we can do this in the following ways

    1. You store all the data in session and use it in confirmation page and then on data insertion page. Do remember to update or delete it if user updates or cancel the order.

    2. You can dynamically create the confirm order page using javascript and HTML and when user clicks confirm button then only we post it to the PHP page. This will also reduce a server call.

    3. One other ways is to again send the collected posted values and keep it as hidden fields in the confirmation page and post it when clicked confirm.

提交回复
热议问题