开发者

how to show the result in the same page after submitting the form?

开发者 https://www.devze.com 2022-12-09 06:47 出处:网络
after getting some answers on my last question ,i released it\'s not a good idea to use $_SERVER[\"PHP_SELF\"] as the action for form submission , so would anyone tell me what\'s the right way to subm

after getting some answers on my last question ,i released it's not a good idea to use $_SERVER["PHP_SELF"] as the action for form submission , so would anyone tell me what's the right way to submit a form and view it's result in the same page??cause when i put the php script开发者_Python百科 in another file and set the action of my form to it,it doesn't show the result in the same page...any idea?


If you don't set an action at all, the default action will be the current page.

So, you want something like <form method="POST"> ... </form>.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号