claro Posted October 23, 2011 Share Posted October 23, 2011 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 More sharing options...
Snape Posted October 23, 2011 Share Posted October 23, 2011 Try POST method. Link to comment https://forums.phpfreaks.com/topic/249637-multiple-value/#findComment-1281529 Share on other sites More sharing options...
claro Posted October 23, 2011 Author Share Posted October 23, 2011 still.the same problem. thank you for your suggestion but still I got the same. Link to comment https://forums.phpfreaks.com/topic/249637-multiple-value/#findComment-1281531 Share on other sites More sharing options...
Pikachu2000 Posted October 23, 2011 Share Posted October 23, 2011 Instead of input type="button", try input type="submit" to submit a form. Link to comment https://forums.phpfreaks.com/topic/249637-multiple-value/#findComment-1281535 Share on other sites More sharing options...
claro Posted October 23, 2011 Author Share Posted October 23, 2011 thank you very much!! Link to comment https://forums.phpfreaks.com/topic/249637-multiple-value/#findComment-1281544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.