Jump to content

form doesn't submit


ueon

Recommended Posts

So both of the following forms doesn't do anything when I press enter or "login/register" - it doesn't reload either

 

                <form action="index.php" method="post">
<label>
                        <input type="text" name="log_email" onclick='clearMe(this)' id="input_box" value='Email Address' />
                      </label>
                      <label>
                        <input type="password" name="log_pass" onclick='clearMe(this)' id="input_box" value='Password' />
                      </label>
                      <label>
                        <input name="login" id='login_box' type="button" value='Log In'/>
                        
                      </label>
                </form>

 

                    <form id="register" name="register" method="post" action="register.php">
                      <label>
                        <input type="text" name="reg_email" onclick='clearMe(this)' id="reg_box" value='Email Address' />
                      </label><br /><br />
                      <label>
                        <input type="password" name="reg_pass" onclick='clearMe(this)' id="reg_box" value='Password' />
                      </label><p align="right">
                      <label>
                        <input name="login" id='login_box' type="button" value='Register Now'/>
                      </label></p>
                    </form>

Link to comment
https://forums.phpfreaks.com/topic/240658-form-doesnt-submit/
Share on other sites

your submit buttons need to have an attribute of type="submit" not "button" unless you are going to incorporate javascript with them, which it doesnt look like you are

 

<input name="login" id='login_box' type="submit" value='Log In'/>
<input name="login" id='login_box' type="submit" value='Register Now'/>

 

Link to comment
https://forums.phpfreaks.com/topic/240658-form-doesnt-submit/#findComment-1236056
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.