?
Solved

Submit to mutiple frames

Posted on 2005-03-15
3
Medium Priority
?
214 Views
Last Modified: 2013-12-12

Like i have the page with two frames, i like to submit the form to two frame one is to itseft and the other one is to another page

0
Comment
Question by:programmingstart
[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
3 Comments
 
LVL 32

Accepted Solution

by:
Batalf earned 260 total points
ID: 13548002
Try something like this:

<script>
function sendForm(){
    document.formName.submit(); // Submits the frame to the frame named "newPage" and the file page2.html
    document.formName.action='<? echo $PHP_SELF; ; ?>'; // Changing action
    document.formName.target="_self";
    document.formName.submit();

}
</script>

<form name="formName" action="page2.html" onsubmit="return sendForm()" method="post" target="newPage">
0
 
LVL 10

Expert Comment

by:Kshitij Ahuja
ID: 15659447
No comment has been added to this question in more than 21 days,so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
[Accept Batalf's comment]

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Kshitij Ahuja
EE Cleanup Volunteer
0

Featured Post

Technology Partners: 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

This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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