Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.