0% found this document useful (0 votes)
46 views1 page

How To Declare Multiple Submit Buttons in The Form:: Thankyou - HTML

The document contains code snippets and instructions for multiple submit buttons in a form. It includes an HTML file with markup for a thank you page, CSS code to style headings, a link to a Google Drive file, and an example form with multiple submit buttons whose values trigger different actions on form submission.

Uploaded by

ROHIT JAIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

How To Declare Multiple Submit Buttons in The Form:: Thankyou - HTML

The document contains code snippets and instructions for multiple submit buttons in a form. It includes an HTML file with markup for a thank you page, CSS code to style headings, a link to a Google Drive file, and an example form with multiple submit buttons whose values trigger different actions on form submission.

Uploaded by

ROHIT JAIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

thankyou.

html:

1) <!DOCTYPE html>
2) <html lang="en" dir="ltr">
3) <head>
4) <meta charset="utf-8">
5) <title>Thank You</title>
6) </head>
7) <body>
8) <h1>Thanks for REgistration</h1>
9) <h2>You will get match details soon by email</h2>
10) </body>
11) </html>

form.css:

1) h1{
2) color:red;
3) }
4) ul{
5) color:blue;
6) }

google drive link: https://goo.gl/6iq64Y

How to declare multiple submit buttons in the form:


Within the form we can define multiple submit buttons. But based on value we can implement
corresponding action in the back-end.
Eg

1) <form action="target">
2) ......
3) <input type="submit" name="action" value="update"/>
4) <input type="submit" name="action" value="edit"/>
5) <input type="submit" name="action" value="delete"/>
6) </form>

In the target, based on submit button value we have to implement corresponding action.

1) choice = req.getParameter("action")
2) if choice=="update":
3) perform update releated action
4) elif choice=="edit":
5) perform edit related action
6) elif choice=="delete":
7) perform delete related action

nd
DURGASOFT, # 202, 2 Floor, HUDA Maitrivanam, Ameerpet, Hyderabad - 500038,
19  040 – 64 51 27 86, 80 96 96 96 96, 92 46 21 21 43 | www.durgasoft.com

You might also like