Jump to content

Multiple value


claro

Recommended Posts

THE PROBLEM:

 

My get method fail, below are my codes, I'm selecting array each variable, is it possible? when I clicked submit, It shows nothing, even my url doesnt change.

 

  <?php 
include "include/z_db.php";
echo '  <form method = "GET" action = "dean_report_instructor_action2.php" >';
$c = mysql_query("SELECT DISTINCT course_Title FROM tbl_studenroll AS se LEFT JOIN tbl_course AS c ON (c.course_Id = se.course_Id)") or die (mysql_error());

echo "<select size = '4' name = 'course[]'  multiple>";
while ($row = mysql_fetch_array ($c))
{
echo "<option>".$row['course_Title']."</option>";
}
echo '</select>';
  
  $p = mysql_query ("SELECT DISTINCT user_Program FROM tbl_studenroll AS se LEFT JOIN tbl_user AS u ON (u.id = se.user_Id)") or die (mysql_error());
  
  echo "<select size = '4' name = 'program[]'  multiple >";
while ($row2 = mysql_fetch_array ($p))
{
echo "<option>".$row2['user_Program']."</option>";
}
    echo "</select>";
    

echo "<br/><br/>";
?>
<input type="button" name = "submit"  value="Submit">

 

this is my dean_report_instructor_action2.php :

 


<?php

$course = $_GET['course'];
$program = $_GET['program'];
echo $course;
echo $program;

 

I'm new bee here.

Link to comment
https://forums.phpfreaks.com/topic/249637-multiple-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.