|
|
#2 (permalink) |
|
Üyelik Tarihi: 29.11.2000
Yer: istanbul
Yaş: 28
Mesaj: 1,189
|
Re: bir form, 2 action ya da öyle bişiy (asp)
forumda daha önce benzeri PHP için sorulmuştu...
ikincisi daha çok işine yarar. 1. yol:: Kod:
<script LANGUAGE="JavaScript"> function iki_sayfa(){ document.zz.method = 'POST' document.zz.action = 'zz1.PHP' document.zz.target = 'UstFrame' document.zz.submit() document.zz.method = 'GET' document.zz.action = 'zz2.PHP' document.zz.target = 'AltFrame' document.zz.submit() document.zz.reset() } </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <form name="zz" > <input type="text" name="MESAJ"> <br> <br> <input type="button" value="TAMAM" OnClick="iki_sayfa()" > </form> 2.yol:: Kod:
<script lainguage="JavaScript"> arm_frm2post = function() { var amp="",str="?",arg=arm_frm2post.arguments,fn=arg[0],p1=arg[1],p2=arg[2]; for(var j=0;j<fn.elements.length;j++){ amp = (j<fn.elements.length-1)?"&":""; str+=fn.elements[j].name+"="+fn.elements[j].value+amp ; } (p1=="this")?document.location=document.location+str:window.open(p1+str); (p2=="this")?document.location=document.location+str:window.open(p2+str); } </script> <form name="form1" method="get" action="#"> <input type="text" name="name" value="armaðan"> <input type="text" name="surname" value="diktepe"> <input type="button" value="yallah" onclick="arm_frm2post(document.forms['form1'],'http://www.diktepe.com/1.PHP','http://www.diktepe.com/2.PHP');"> </form>
__________________
Since 2k - CG | U.K. |
|
|
|
|
|
#3 (permalink) |
|
Üyelik Tarihi: 30.09.2001
Yer: istanbul
Yaş: 27
Mesaj: 415
|
Re: bir form, 2 action ya da öyle bişiy (asp)
javascriptle iki tane action yollanabiliyodu sanki ama bir ASP ye yolladıktan sonra o ASP de istenilen diger ASP ye yollar istenirse zaten.. cok mu karisik cumle oldu gece gece acaba
__________________
:::: AnIL'dan bu kadar::::: |
|
|
|
Zoque'a hoşgeldiniz!