Advertisement

03.25.2007 at 02:16PM PDT, ID: 22471402
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

I'm trying to have my form submit to two different actions. It's own page and another..

Asked by tyweed420 in PHP Scripting Language, Web Languages/Standards

Tags: , , , ,

I'm trying to have my form submit to two different actions. The form now its action is to go to PostResults.php. However if someone hits the button it calls the same page over and if that uncheck button was clicked change a variable as shown below. I believe my problem is that because the form action="postresults.php" when i hit the uncheckall button and it refreshes the current page it does not recognize   if(isset($_POST['unCheckAll'])). How can i get it to read the post vars on both postresults.php and the current page so when it reloads itself it also has those variables?


example is.
<SCRIPT LANGUAGE="JavaScript">
function directForm(strURL)
{
      document.forms[0].action = strURL;
      document.forms[0].submit();
}
//  End -->
</script>

     <form action="" method="post">
   
  $unCheckAllFlag = false;
  if(isset($_POST['unCheckAll']))
  {
   $unCheckAllFlag = true;
  }


<INPUT type="button" value="Submit" name=Submit onClick="directForm('PostResults.php')">
<INPUT type="button" value="Save" name=Save onClick="directForm('save.php')">
<input type="button" value="unCheckAll" name="unCheckAll" onClick="directForm('dformTT.php')">

             Start Free Trial
[+][-]03.25.2007 at 02:40PM PDT, ID: 18789595

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, Web Languages/Standards
Tags: submit, two, different, form, actions
Sign Up Now!
Solution Provided By: Tchuki
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.27.2007 at 01:55PM PDT, ID: 18803537

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.21.2008 at 02:09PM PDT, ID: 21183209

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32