Stop ASP script auto-running on page load

后端 未结 1 405
借酒劲吻你
借酒劲吻你 2021-01-28 06:29

I\'m having a problem here. I\'ve created a page for adding records into a database, it\'s working fine however the asp script is running every time the page loads, inputting a

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-28 07:32

    Give your submit input a name attribute - eg submitbutton - then do something like

    if request.form("submitbutton") <> "" then
    
    'put your insert code here
    
    End if
    

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