What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

submit button acts like a href


New member
when i press the submit button on my html page it opens the php page instead of sending the inputs to it.

<form action="signupinc.php" style="border:1px solid #ccc" method="post">
<div class="container">
<h1>Sign Up</h1>
<p>Please fill in this form to create an account.</p>
<label for="username"><b>username</b></label>
<input type="text" placeholder="enter username" name="uid" required>

<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="mail" required>

<label for="pwd"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="pwd" required>

<label for="pwd-repeat"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="pwd-repeat" required>

<input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me

<p>By creating an account you agree to our <a href="#" style="color:dodgerblue">Terms & Privacy</a>.</p>

<div class="clearfix">
<button type="button" class="cancelbutton">Cancel</button>
<button type="submit" name="signup-submit" value="submmit">Sign Up</button>