在同一頁面上顯示mysql結果

[英]display mysql results on same page


I'm used to working with C# and ASP.NET which automatically allows one to display database results immediately on the same page from which they were requested.

我習慣使用C#和ASP.NET,它可以自動允許人們在請求它們的同一頁面上立即顯示數據庫結果。

I am, however, now using PHP which I haven't coded in in years. I have the results popping up in a separate page because the form tag's 'action' option is set to that specific PHP page. I need these results to display, though, in the same page that I'm clicking the button. Any ideas?

但是,我現在正在使用PHP,這是我多年沒有編寫的。我將結果彈出一個單獨的頁面,因為表單標簽的'action'選項設置為該特定的PHP頁面。但是,我需要顯示這些結果,在我單擊按鈕的同一頁面中。有任何想法嗎?

1 个解决方案

#1


Set the 'action' tag to the current page, and move the POST request handling logic to that current page.

將'action'標記設置為當前頁面,並將POST請求處理邏輯移動到該當前頁面。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/05/22/725691396920b18ad4ee676c145bebc2.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com