使用值重定向到另一个网站 [英] redirect to another website with values

查看:77
本文介绍了使用值重定向到另一个网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我想做----

1>假设我有两个网站,分别为a.com和b.com.
2>提交此表单时,我正在网站a.com上填写表单"a"
数据应转移到网站b.com,并将填写表格"b"
自动.
3>与数据库连接无关.只需在网站b.com和
上重定向 用网站a.com的表格"a"包含的数据填写表格"b".

4>我只是说->打开a.com->填写表格"a"->提交时->打开
网站b.com->获取来自a.com的数据->填写表格
"b".
5>我不想使用加密的查询字符串.
任何人都可以帮助我,将不胜感激.
6>我已根据您的建议使用了此代码

hi friends,

I want to do like---

1> Suppose, I have two websites name a.com and b.com.
2> I am filling form "a" in website a.com, when I submit this form
data should transfer to website b.com and the form "b" will be fill up
automatically.
3> No neet to connection with data base. just redirect on website b.com and
fill the form "b" with the data contain by form "a" of web site a.com.

4> I just meant that ->open a.com -> fill form "a" -> on submit -> open
the site b.com -> take the data coming from a.com -> fill the form
"b".
5> I don''t want to use encrepted query string.
Any one can help me will appreciated.
6> I have used this code according to your suggetion

<form action="b.com" method="post">
<input name="control name"/>...
</form>
 now on b.com
 request.form["CONTROL NAME"];



但没有结果.

任何人都可以帮助我,将是极大的帮助.

谢谢,
mahesh



but no result.

any one can help me will be greate help.

Thanks,
mahesh

推荐答案

vipsha写道:

我正在网站中填写表格"a" a.com,当我提交此表格
数据应转移到b.com网站,并将填写表格"b"
自动

I am filling form "a" in website a.com, when I submit this form
data should transfer to website b.com and the form "b" will be fill up
automatically



选择a.com数据库保存的数据并填写b.com中的字段!

即使您假设打开两个网页的情况.一个填写a.com,另一个填写b.com,当您填写a.com并提交时,b.com表单会自动填充:
在b.com上保留一个连续计时器,以检查a.com保存到DB中的数据是否存在于DB中,然后在内部获取数据并填充b.com.


虽然提出的问题和预期的问题很奇怪.



Pick the data saved by a.com database and fill the fields in b.com!

Even if you are assuming a case where two webpages are open. One with a.com and other with b.com, the moment you fill a.com and submit, b.com forms autofill:
Keep a continous timer on b.com to check if data exists in DB, the moment a.com saves in DB, fetch it internally and fill b.com.


Though the question asked and expected is weird.


您能做的最好的事情是,让b.com上的页面使用AJAX来查看所讨论的数据是否在双方都使用的通用数据库中网站,并进行相应的填充.
The best you could do, is have pages on b.com use AJAX to see if the data in question is in a common database used by both sites, and populate accordingly.


您要从网站a转移到网站b?在这种情况下,您要做的是将数据放在重定向到的URL上,然后从站点b的页面中读取数据.我以为您的意思是两个页面都已经打开,而不是站点a上的浏览器将跳转到站点b.

当然,除非您同时编写站点a和站点b,或者除非您确定站点b将以您希望的方式获取URL上的数据,否则您要问的是不可能的.
What you want is to transfer from site a to site b ? In that case, what you want to do, is put the data on the URL you redirect to, and read it from there inside the page in site b. I thought you meant both pages were already open, not that the browser that was on site a will jump to site b.

Of course, what you''re asking is impossible unless you write both site a and site b, or unless you know for sure that site b will take data on the URL in the manner you''re hoping.


这篇关于使用值重定向到另一个网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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