Solved

Submit to pages from this one form

Posted on 2008-10-30
3
160 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Style on Chrome 1 38
Table style position to the left 8 26
Ajax on ASP 2 39
PHP $_POST vs asp request 4 27
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

749 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