ItsLaunch Posted May 3, 2020 Share Posted May 3, 2020 Hi, I have such a stupid problem (beginner here). How to make that button redirect to another page? <input type="submit" class="btn" value="Login"> Link to comment Share on other sites More sharing options...
Ingolme Posted May 4, 2020 Share Posted May 4, 2020 If you just want a link to another page, just use an <a> tag with an href attribute and then use CSS to make it look like a button. If this button belongs to a form, you can set the form's action attribute. Link to comment Share on other sites More sharing options...
Sherin Posted May 6, 2020 Share Posted May 6, 2020 You want to pass which page is redirect on when click submit button to add action attribute on form tag and method attribute <form action="/home" method="Post"> <input type="Submit" class="btn" value="Login"> </form> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now