?
Solved

Submit problem ?

Posted on 2000-04-04
4
Medium Priority
?
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Accepted Solution

by:
chteril earned 40 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

770 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