I've multiple dynamic forms in a single web page like as follows
<form name='login' id='login_1'>
<input type='text' name='username'/>
<input type='password' name='pwd'/>
<input type='submit' name='submit' id='submit_1' value='Login'/>
</form>
<form name='login' id='login_2'>
<input type='text' name='username'/>
<input type='password' name='pwd'/>
<input type='submit' name='submit' id='submit_2' value='Login'/>
</form>
.......
.......
Here id's are dynamic,suppose if user's enters data in second form and submits then I need to send second(only) form data to server without using third party jQuery plugins,here I'm unable to select submit button id properly.
Is it secure process to send data using serializeArray();, especially for login process ?