我现在的设置
“我的网站主页”(rankings.php)显示了顶部有搜索表单的用户列表,以便根据用户的性别或城市筛选用户。
我想使用jquery来更新结果,而不需要重新加载页面。
我的问题是:
- with either method (load,post,get) you need to enter the url to send the request to but I'm not sure if the url should be the rankings.php page itself or another php file that holds the
我在wordpress网站上有一张表格。在递交表格时,我想:
1)获取表单数据
2)使用这些数据运行数据库查询
3)处理结果并使用这些结果构造查询字符串
4)将用户重定向到站点根+查询字符串
在WordPress之外,我会通过创建form action="my_query_string_constructor.php"来解决这个问题,只需对那里的post数据进行所有必要的处理。我考虑在WordPress中做一些类似的事情,通过创建表单action some like "single-my_query_string_constructor_posts.php