473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to make submit button to redirect to a different page

After creating a form i need my submit button to redirect me to a different html page that i have listed as "thanks.html"

what am i missing

Expand|Select|Wrap|Line Numbers
  1. <input type="submit" name="submit" value="Submit" class="button"”action = "thanks.html"method=”POST”
  2.   >
Mar 30 '20 #1
2 1860
Ishan Shah
47 32bit
As you say, you have extra "(double quotes) ending with class name which is underlined below code :

Expand|Select|Wrap|Line Numbers
  1. <input type="submit" name="submit" value="Submit" class="button"action = "thanks.html"method=”POST”

You can redirect to different Html page using onclick, like the following :

Expand|Select|Wrap|Line Numbers
  1. <input type="submit" name="submit" value="Submit" class="button" onClick = "location.href='thanks.html'" method=”POST”>
Apr 3 '20 #2
This can be done by using the html "form" element. So you can simply do it by

<form action="login.php" method="post">
<div class="form-group">
<div class="checkbox col-sm-10 col-sm-offset-2">
<button type="submit" name="submitf" value="register" class="btn_dark_grey">{translate text='register'}</button>
</div>
</div>
</form>
Apr 3 '20 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: JSjones | last post by:
Hi all, I'm new to these boards and my javascript experience is fairly limited and basic so please bear with me. Anyway, on to the question and some background. I'm developing using ColdFusion...
6
by: Adrian | last post by:
I need to have 2 submit buttons in one form calling the same page. I just need to know which was used. Being able to pass a hidden form input for each would be ideal. How can I do this?? ...
2
by: gan | last post by:
Hi, a simple question here. Can we place webcontrol button in a different frame? Thanks.
2
by: dipesh10 | last post by:
I am doing one project with asp net 2.0 and c# ,i have master page and content page , in content page i have 10 text box and one submit button , when submit will click those text box need to...
1
by: alexcole | last post by:
I need to know how a button can make a webbrowser go to an assigned website.
5
by: sumeetmakkar | last post by:
Hi all, I am a begineer and working on a project. Facing trouble linking a submit buuton to a page of my choice.Script i am using is: <SCRIPT language=JavaScript><!-- function validate(form) {...
2
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User...
4
by: velocity00723 | last post by:
I am trying to login for website with autologin to forum,and vcalender its work fine in mozilla and ie but it gives problem in safari(IN MAC) following is the code if(isset($_POST)) {...
2
by: lka527 | last post by:
I am trying to make a site available for someone to *upload* certain type of text file (.txt) that can be parsed by written code. the upload file is available on the main site but I need this to...
0
by: sunita mohanty | last post by:
how to insert and update image into a mysql database and php only one submit button only on one form
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.