Code: Select all
$music_key = $HTTP_POST_VARSї"music_key"];but I get an error message:
Notice: Undefined index: music_key in C:\EugPersonnel\www\search_results_V1_3.php on line 8
The code for the Option Form looks like this:
<FORM METHOD=POST ACTION= "search_results_V1_3.php">
<B>Music type:</B><BR>
<SELECT >
<OPTION SELECTED NAME="music_key" VALUE=0> All
<OPTION NAME="music_key" VALUE=1> Hip-Hop
<OPTION NAME="music_key" VALUE=2> Rap
<OPTION NAME="music_key" VALUE=3> R&B
<OPTION NAME="music_key" VALUE=4> Top Ten
<OPTION NAME="music_key" VALUE=5> Soka
</SELECT>
<P><INPUT TYPE="submit" VALUE="Submit">
I look in a PHP book, but I can't find what I am doing wrong!!!
Does anybody know what the source of the problem is????????
I have register_globals to OFF and track_vars is always enabled by default.
I even tried
Code: Select all
$music_key = $_POSTї'music_key'];I suspect the error to be in the actual HTML code!!!! Is that possible???
Thanks
Eugene