我们如何从单个按钮执行两个动作 [英] how can we perform two actions from single button

查看:106
本文介绍了我们如何从单个按钮执行两个动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生我有注册页面,,,我希望在填写完所有细节后,当我提交时,这些详细信息将存储在我的数据库中并且将会打开一个新页面,并且相同的详细信息将存储在此页面...现在请告诉我..我不知道我如何与单个提交按钮并排执行这两个...

i成功将我的详细信息存储在我的数据库中。但请告诉我我如何将这些细节放在我的另一个页面中,并提供相同的提交按钮

解决方案

这实际上非常容易。您说您已经拥有了保存数据的代码,因此在将数据重定向到新页面并在查询字符串中传递已保存数据的ID后,您的新页面将使用该ID从数据库中查找值。

sir i have registration page,,, and i want after filling all details ,when i submit ,, these details will store in my database and side by side one new page will open ,,and the same details will store in this page... now please tell me .. i have no idea how i do these two side by side with single submit button..
i am successful in storing my details in my database ., but please tell me how these details will come in my another page with same submit button

解决方案

This is actually very easy to do. You say you already have the code to save the data so after you save the data redirect to the new page and pass the id of your saved data in the query string and then your new page uses that id to lookup the values from the database.


这篇关于我们如何从单个按钮执行两个动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆