Пример №1
<html> <head> ... </head> <body> ... <form id=f1 name=f1 method="POST" action="http://www.oplata.info/asp/pay.asp"> ... Выберите тип электронной валюты:<br> <table cellpadding="3" cellspacing="1" border="0"><tr> <td><input type=text name=in size=7 value="0.5" readonly></td> <td> <select size=1 style="width:130px;" name="type_curr"> <option value="WMZ">0.5 WMZ&nbsp;&nbsp;</option> <option value="WMD">0.51 WMZ (в кредит)&nbsp;&nbsp;</option> <option value="WMR">14.77 WMR&nbsp;&nbsp;</option> <option value="WME">0.43 WME&nbsp;&nbsp;</option> <option value="WMU">3.04 WMU&nbsp;&nbsp;</option> <option value="Paymer">0.5 WMZ (WM-карта)&nbsp;&nbsp;</option> <option value="PCR">16.23 Яндекс.Деньги&nbsp;&nbsp;</option> </select> </td> <td> <input type=submit class=button value=Оплатить> </td> </tr><tr> <input type="hidden" name="id_goods" value=16509> <input type="hidden" name="id_agent" value=14710> <input type="hidden" name="fail_page" value="http://www.plati.ru/asp/buy.asp?id_d=16509"> </tr></table> ... </form> .. </body> </html> Пример №2
<html> <head> ... function ChangeCurr() { var val = new Array; val[0] = 0.5; //WMZ val[1] = 0.51; //WMZ в кредит val[2] = 14.77; //WMR val[3] = 0.43; //WME val[4] = 3.04; //WMU val[5] = 0.5; //Paymer val[6] = 16.23; //RUR Yandex var op = document.forms("f1").all("TypeCurr").options; for(var n=0;n<op.length;n++) { if (op(n).selected) { document.forms("f1").all("in").value = val[n]; break; } } } ... </head> <body> ... <form id=f1 name=f1 method="POST" action="http://www.oplata.info/asp/curr_select.asp"> ... Выберите тип электронной валюты:<br> <table cellpadding="3" cellspacing="1" border="0"><tr> <td><input type=text name=in size=7 value="0.5" readonly></td> <td> <select size=1 style="width:130px;" name="type_curr" onChange="ChangeCurr()"> <option value="WMZ">WMZ&nbsp;&nbsp;</option> <option value="WMD">WMZ (в кредит)&nbsp;&nbsp;</option> <option value="WMR">WMR&nbsp;&nbsp;</option> <option value="WME">WME&nbsp;&nbsp;</option> <option value="WMU">WMU&nbsp;&nbsp;</option> <option value="Paymer">WM-карта&nbsp;&nbsp;</option> <option value="PCR">Яндекс.Деньги&nbsp;&nbsp;</option> </select> </td> <td> <input type=submit class=button value=Оплатить> </td> </tr><tr> <input type="hidden" name="id_goods" value=16509> <input type="hidden" name="id_agent" value=14710> <input type="hidden" name="fail_page" value="http://www.plati.ru/asp/buy.asp?id_d=16509"> </tr></table> ... </form> .. </body> </html>