Thursday, 22 August 2013

Submit form to another page within the same domain which has no form ID

Submit form to another page within the same domain which has no form ID

How to submit form to another page within the same domain which has no
form ID or name?
Form that needs to submit to another page:
<form id="login_form" action="afterlogic" method="post">
<div class="input-req-login"><label
for="user">Email Address</label></div>
<div class="input-field-login icon
username-container">
<input id="email" autofocus="autofocus"
data-bind="value: email, hasfocus: emailFocus,
valueUpdate: 'afterkeydown'"
placeholder="Enter your email address."
class="std_textbox" type="text" tabindex="1"
required>
</div>
<div style="margin-top:30px;"
class="input-req-login"><label
for="pass">Parola</label></div>
<div class="input-field-login icon
password-container">
<input id="password" data-bind="value:
password, hasfocus: passwordFocus,
valueUpdate: 'afterkeydown'"
placeholder="Enter your email password."
class="std_textbox" type="password"
tabindex="2" required>
</div>
<div class="controls">
<div class="login-btn">
<button type="submit"
onclick="document.getElementById('Mail_LayoutSidePane_Toolbar').submit()"
data-bind="text: signInButtonText,
command: loginCommand"
tabindex="3">Autentificare</button>
</div>
</div>
<div class="clear" id="push"></div>
</form>
Target form:
<form class="form fields" action="#/" onsubmit="return false;"
data-bind="command: loginCommand"> <div class="fieldset"> <div class="row
email" data-bind="visible: emailVisible, css: {'focused': emailFocus(),
'filled': email().length > 0}"> <label for="email" class="title
placeholder" data-i18n="LOGIN/LABEL_EMAIL" data-bind="i18n:
'text'"></label> <span class="value"> <input id="email" class="input"
type="text" autocomplete="off" data-bind="value: email, hasfocus:
emailFocus, valueUpdate: 'afterkeydown'" /> </span> </div> <!--<div
class="row login" data-bind="visible: loginVisible, css: {'focused':
loginFocus(), 'filled': login().length > 0}"> <label for="login"
class="title placeholder" data-i18n="LOGIN/LABEL_LOGIN" data-bind="i18n:
'text'"></label> <span> <input id="login" class="input" type="text"
data-bind="value: login, hasfocus: loginFocus, valueUpdate:
'afterkeydown'" /> </span> </div>--> <div class="row password"
data-bind="css: {'focused': passwordFocus(), 'filled': password().length >
0}"> <label for="password" class="title placeholder"
data-i18n="LOGIN/LABEL_PASSWORD" data-bind="i18n: 'text'"></label> <span
class="value"> <input id="password" class="input" type="password"
data-bind="value: password, hasfocus: passwordFocus, valueUpdate:
'afterkeydown'" /> </span> </div> </div> <div class="row buttons"> <button
type="submit" class="button login" data-bind="text: signInButtonText,
command: loginCommand"></button> </div> <div class="row signme"
data-bind="visible: signMeType() !== Enums.LoginSignMeType.Unuse"> <span>
<label class="custom_checkbox" data-bind="css: {'checked': signMe}"> <span
class="icon"></span> <input id="signme" type="checkbox"
data-bind="checked: signMe" /> </label> <label class="title" for="signme"
data-i18n="LOGIN/LABEL_REMEMBER_ME" data-bind="i18n: 'text'"></label>
</span> </div> </form>
Actully we are taling about this page http://webmail.adresemail.com/
trying to submit to this page http://webmail.adresemail.com/afterlogic/

No comments:

Post a Comment