简体   繁体   中英

How to submit a dropdown box value in php without using submit

How to submit a dropdown box value in php without using submit and javascript is that possible or am i wrong.also i dont want to use following way

document.forms["adminorder"].action = "../controller/vieworderprocess.php?name="+combine;
document.forms["adminorder"].submit();

也许你可以使用ajax ...是javascript,但你可以在异步模式下向服务器发送一个值...而不提交表单

使用window.location.href =“../ controller / vieworderprocess.php?name =”+ combine“;

如果没有提交表单或在JavaScript中使用submit()函数,则无法提交表单。

您可以使用j查询表单submit()方法或java脚本表单submit()方法提交表单而无需提交按钮。或者您可以使用Ajax发送必要的值而无需提交方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM