Solved

Submit to pages from this one form

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

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

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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 …

828 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