如何通过url发送变量 [英] how to send variable through url
本文介绍了如何通过url发送变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个按钮,如果我点击该按钮,我如何通过网址发送变量?反正有吗?请任何人帮助我
< 按钮 type = 按钮 class < span class =code-keyword> = btn btn-primary btn-sm id = 发送 onClick = add('<?php echo $ page_owner;?>','add_user'); > 发送< / button >
如何通过url发送onclick变量?
解决方案
page_owner; ?>','add_user'); > 发送< / button >
如何通过url发送onclick变量?
你通常通过GET和POST发送值。
如果您想通过网址发送,请使用GET - http://www.w3schools.com/jquery/jquery_ajax_get_post .asp [ ^ ]。
I have a button, if i click that button how can I send variable through url? Is there anyway to do that? please anyone help me
<button type="button" class="btn btn-primary btn-sm" id="send" onClick="add('<?php echo $page_owner; ?>','add_user');"">Send</button>
how to send onclick variable through url?
解决方案
page_owner; ?>','add_user');"">Send</button>
how to send onclick variable through url?
You send values typically through GET and POST.
If you want to send through URL, use GET - http://www.w3schools.com/jquery/jquery_ajax_get_post.asp[^].
这篇关于如何通过url发送变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文