?
Solved

Submit to pages from this one form

Posted on 2008-10-30
3
Medium Priority
?
162 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

Accepted Solution

by:
quetzal22 earned 1500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

771 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