javascript - input type submit not pass the process to action -


i'm trying create 2 form stacking in 1 php code. form cannot submit @ all. sit there without passing form action="..."

here coding first form (registration)

<form id="regform" class="form" action="php/enter_new.php" method="post"> <!-- progress bar --> <ul id="progressbar">     <li class="active">access code</li>     <li>account setup</li>     <li>user agreement</li> </ul>  <!-- fieldsets --> <fieldset>     <h2 class="fs-title">are lost?</h2>     <h3 class="fs-subtitle">get access code before enter!!</h3>     <input type="text" name="invite" class="invite field" placeholder="access code" onkeyup="checkavaccess()" autocomplete='off' required />     <br />         <img src="/images/gif/checking.gif" id="loadericon-access" style="display:none" />         <span id="availability-status-access"></span>     <br />     <input type="button" name="login" class="action-button" id="tolog" value="login" />     <input type="button" name="next" class="next action-button" id="access" value="next" disabled="disabled" /> </fieldset> <fieldset>     <h2 class="title">account setup</h2>     <h3 class="subtitle">login information</h3>     <input type="text" name="username" class="username field" id="regusername" placeholder="username" onkeyup="checkavreg()" autocomplete='off' />         <img src="/images/gif/checking.gif" id="loadericon-reg" style="display:none" />         <span id="availability-status-reg"></span>      <input type="password" name="password" class="password field" id="password" placeholder="password" required />         <div class="pwstrength_viewport_progress"></div>     <input type="button" name="previous" class="previous action-button" value="previous" />     <input type="button" name="next" class="next action-button" id="loginfo" value="next" disabled="disabled" /> </fieldset> <fieldset>     <h2 class="fs-title">user agreement</h2>     <h3 class="fs-subtitle">by signup @ our website... </h3>             <input type="button" name="previous" class="previous action-button" value="previous" />     <input type="submit" name="submit" class="submit action-button" id="subregister" value="submit" disabled="disabled"/> </fieldset> 

after registration form closing, there's no other code there.. next code after login code

<form id="loginform" class="form" name="login" action="php/redirrect_to.php" method="post"> <fieldset>     <h2 class="fs-title">enter website</h2>     <h3 class="fs-subtitle">please login continue!!</h3>     <input type="text" name="username" class="username field" id="login" placeholder="username" onkeyup="checkavlogin()" autocomplete='off' required />         <img src="/images/gif/checking.gif" id="loadericon-login" style="display:none">         <span id="availability-status-login"></span>     <input type="password" name="password" class="password field" placeholder="password" required />         <div class="pwstrength_viewport_progress"></div>     <input type="button" name="register" class="action-button" id="toreg" value="register" />     <input type="submit" name="submit" class="submit action-button" id="sublogin" value="submit" formaction="php/redirrect_to.php" formmethod="post" disabled="disabled" /> </fieldset> 

note disable on submit input remove js after onkeyup=".." value = true

the see there's many next , previous because i'm using multistep form basic. here original code. have remove return false value js

never name submit button "submit"

<input type="submit" name="submit" ... />  <-- bad name  <input type="submit" name="anynamebutsubmit" ... />  <-- name 

form submit button not submit when name of button "submit"


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -