Solved

Submit to pages from this one form

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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…

773 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