[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/10/2007 at 01:03PM PDT, ID: 22818814
[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!

7.6

Post values from a function buildselect to another page

Asked by blaadom in PHP and Databases, PHP for Windows

Tags: get, i, page, post, value

I have a function buildselect which gets the values of fields from a table, and displays the data in drop down menus which works fine. What I want to do, is get the value that the user chooses from each of the menus and post them to the next page where they are used as sessions. I'm not getting any errors, and which ever way I try, the values don't get posted across. Any ideas would be appreciated, thanks. The following is my code:

<?PHP
session_start();
require("connect.php");
                                            
  function buildSelect( $field_name, $curValue, $qry ) {
          $fldT  = "<select field_name='$field'>\n";
          $rs = @mysql_query( $qry );
          if ( $rs )
               while ( $rw = @mysql_fetch_array( $rs, MYSQL_NUM ) ) {
                    $val = $rw[0];
                    $sel = ( $val == $curValue ) ? " selected='selected' " : "";
                    $fldT .= "<option value=".$val." $sel>$val</option>\n";
               }

          $fldT .= "</select>\n";

          return $fldT;
     }        
$client = ( isset($_POST['client']) ) ? $_POST['client'] : "" ;
$name = ( isset($_POST['name']) ) ? $_POST['name'] : "$name" ;

$query  = "SELECT * FROM clients ORDER BY 'clients' LIMIT $offset, $rowsPerPage";
?>

<? echo buildSelect("client", $_POST['client'], "select client from Clients order by client"); ?>
<? echo buildSelect("name" , $_POST['name'], "select Name from Clients order by Name"); ?>
<? echo buildSelect("address" , $_POST['address'], "select Address from Clients order by Address"); ?>

On page 2, I simply have:

<?php
session_start();

$_SESSION['site'] = $_POST['site'];
$_SESSION['client'] =  $_POST['client'];
$_SESSION['campaign'] = $_POST['campaign']
etc ....
?>
 
Loading Advertisement...
 
[+][-]09/10/07 01:23 PM, ID: 19863961

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09/10/07 01:24 PM, ID: 19863970

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09/11/07 03:27 AM, ID: 19867287

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]09/11/07 04:28 AM, ID: 19867563

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09/11/07 05:19 AM, ID: 19867850

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]09/11/07 06:15 AM, ID: 19868284

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09/11/07 09:04 AM, ID: 19869807

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]09/11/07 09:25 AM, ID: 19869977

View this solution now by starting your 30-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 and Databases, PHP for Windows
Tags: get, i, page, post, value
Sign Up Now!
Solution Provided By: bportlock
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09/11/07 10:39 AM, ID: 19870552

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
 
Loading Advertisement...
20091111-EE-VQP-91 / EE_QW_1_20070628