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. Quote Link to comment Share on other sites More sharing options...
Snape Posted October 23, 2011 Share Posted October 23, 2011 Try POST method. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
claro Posted October 23, 2011 Author Share Posted October 23, 2011 thank you very much!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.