PDA

View Full Version : Form using Javascript submit



yelcome
02-27-2009, 09:02 PM
Hello

This website (http://www.t-mobile.hu/lakossagi/ugyintezes/tudakozo) has this form.
I would like to place this form on my website and when I click on the submit button then it would open a new window with the result of the search.
Please help me how to modify this script to use on my site!
Thanks for your help!


<form action="#" id="tmotudakozo_formTmotudakozoKereso" method="get">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><label for="tel">Telefonszám</label></td>
<td>
<div>
<select name="tmotudakozo_prefix">
<option>20</option>
<option selected="selected">30</option>
<option>70</option>
</select>
<span>-</span>
<input type="text" name="tmotudakozo_msisdn" id="tel" value="" />
</div>
</td>
<td> </td>
</tr>
<tr>
<td><label for="nev">Név</label></td>
<td><input type="text" id="nev" name="tmotudakozo_nev" value="" /></td>
<td> </td>
</tr>
<tr>
<td><label for="telepules">Település</label></td>
<td><input type="text" name="tmotudakozo_telepules" value="" /></td>
<td> </td>
</tr>
<tr>
<td><label for="irsz">Irányítószám</label></td>
<td><input type="text" id="irsz" name="tmotudakozo_irsz" value="" /></td>
<td> </td>
</tr>
<tr>
<td><label for="email">Utca</label></td>
<td><input type="text" id="addr" name="tmotudakozo_street" value="" /></td>
<td> </td>
</tr>
</table>
<input type="hidden" name="appid" value="tmotudakozo" />
</form>
<div>
<a href="#" onclick="$('tmotudakozo_formTmotudakozoKereso').submit();return false;">
<span>
Keresés
</span>
</a>
</div>