Solved

Submit to pages from this one form

Posted on 2008-10-30
3
156 Views
Last Modified: 2010-04-09
I am trying to call a page in my application. I am only showing you some of the code but I would like to know where do I place the other pages name so that it can call both pages when the submit button is press.
1. The first pages names that I am calling is gdform.asp
2. The other page I would like to call would be test.asp where should I place it?

 <form action="gdform.asp" name="theForm" method="POST">
                                                      <input name="_sender" type="hidden" value="nubiantravels.com" />
                                                      <input name="_recipients" type="hidden" value="nubiantravels.com" />
                                                      <input name="_subject" type="hidden" value="Site Feedback Form">
                                                      <input name="_requiredFields" type="hidden" value="first,last,address,city,state,zip,country,email,uscitizen,validpassport">
                                      <table border="0" width="100%" cellpadding="0" cellspacing="0">
 
                                    <td align="right"><input type="submit" value=" Submit ">
                                   
                                      <!--- <input type="button" value="Submit" onclick="doSubmit(this.form)"> ---></td>
                                  </tr>
                                          </table></td>
                                           </tr>
                                      </table>
                                              </form>
                                          
0
Comment
Question by:WDJ98338
  • 2
3 Comments
 
LVL 2

Expert Comment

by:quetzal22
ID: 22847671
0
 
LVL 2

Accepted Solution

by:
quetzal22 earned 500 total points
ID: 22847679
putting it together:
<script language="javascript">

function SubmitForm()

{

      document.MyForm.action = "one.asp";

      document.MyForm.target = "HiddenIFrame";

      document.MyForm.submit();
 

      document.MyForm.action = "test.asp";

      document.MyForm.target = "";

      document.MyForm.submit();

}

</script>

<iframe name="HiddenIFrame" width="0" height="0"></iframe>

<form action="gdform.asp" name="MyForm" method="POST">

                                                      <input name="_sender" type="hidden" value="nubiantravels.com" />

                                                      <input name="_recipients" type="hidden" value="nubiantravels.com" />

                                                      <input name="_subject" type="hidden" value="Site Feedback Form">

                                                      <input name="_requiredFields" type="hidden" value="first,last,address,city,state,zip,country,email,uscitizen,validpassport">

                                      <table border="0" width="100%" cellpadding="0" cellspacing="0">

 

                                    <td align="right"><!-- <input type="submit" value=" Submit "> -->

                                    

                                      <input type="button" value="Submit" onclick="SubmitForm()"> </td>

                                  </tr>

                                          </table></td>

                                           </tr>

                                      </table>

                                              </form>

Open in new window

0
 

Author Comment

by:WDJ98338
ID: 22859127
THIS WAS THE ANSWER:

<form action="gdform.asp" method="post">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="sendmailok.htm" />
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now