[PHP-DB] Passing selection to next page

2002-12-19 Thread Alex Francis
I have a drop down list created using the following code and am having trouble passing my selection to the next page. Can anyone help? ? $query = select distinct department from courses order by department; $result = mysql_query($query); echo SELECT ID='Category Combo Box' NAME='department';

RE: [PHP-DB] Passing selection to next page

2002-12-19 Thread Snijders, Mark
: [PHP-DB] Passing selection to next page I have a drop down list created using the following code and am having trouble passing my selection to the next page. Can anyone help? ? $query = select distinct department from courses order by department; $result = mysql_query($query); echo SELECT ID

Re: [PHP-DB] Passing selection to next page

2002-12-19 Thread xxx xxxx
Hi, you have to put this list in a form... form name=select_name action=eval.php method=post select option /select /form in eval.php you may write like: $variable1=$_POST['select_name']; //and variable1 is now the option_value selected echo $variable1; where option_value is the value