tradercraig
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>
<hr>
<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>
<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me
</label>
<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>
</div>
</div>
</form>
<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>
<hr>
<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>
<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom:15px"> Remember me
</label>
<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>
</div>
</div>
</form>