Solved

Submit problem ?

Posted on 2000-04-04
4
193 Views
Last Modified: 2010-04-09
I got a situation. There is one form but there are a few submit button but else submit button would like to open separate page.. and all data in the form is avaiable to all page that is created by a submit button in the form... how can i do?
0
Comment
Question by:mrvithan
  • 2
4 Comments
 

Accepted Solution

by:
chteril earned 10 total points
ID: 2683351
try this:

<script>
function submitForm(s){
  document.theForm.action=s;
  document.theForm.submit();
}
</script>

<form name='theform'>

<input type='button' value='submit1' onclick='submitForm("page1.html");'>

<input type='button' value='submit2' onclick='submitForm("page2.html");'>



</form>
0
 

Expert Comment

by:qiang8
ID: 2683378
First create the main.html form.

<form name="btn" Action="choose.asp" method="post">

<input type="submit" name="btnSelect" value="a">
<input type="submit" name="btnSelect" value="b">
<input type="submit" name="btnSelect" value="c">

There make the decision where to go at choose.asp

<%
dim toPage

select case request("btnSelect")
case "a"
  toPage = "page1.asp"
case "b"
  toPage = "page2.asp"
case "c"
  toPage = "page3.asp"
end select

response.redirect toPage

%>

I believe this will work well.
0
 

Expert Comment

by:qiang8
ID: 2683398
Opps..., the one I post is a server side scripting.
0
 

Author Comment

by:mrvithan
ID: 2683422
I didn't try it yet? but i quite believe it work
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
html input type 3 31
Border and image sizing 5 18
Scroll 5 news at a time. 4 25
Select case on click 3 13
This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question