隐藏数组返回OK但文本数组是空的html到PHP

Form:

<form method="POST" action="edit_work.php">

<input type="hidden" name="wid[]"  size="1" value="<?php echo "$wid1" ?>" >
<input type="text" name="course[]"  size="15" value="<?php echo "$course1" ?>" >

PHP:

extract($_POST);  
for($i=0;$i<$count;$i++)  { 
    echo $wid[$i];   
    echo $course[$i]; 
}

gives the wid values OK but not the text entered for the course names.

I have been through all forums for 2 days now. Any help? Thanks.

If you want your PHP to retrieve your data from the form, can't you name your text input "course", then get it inside your PHP with $_POST['course'] ?

What is your $count ?

Using brackets with your name attribute inside your input tag may be dangerous. If you're using a list of inputs maybe you can define a text format like name="course#" where # is your index and then access it form your $_POST variable using $_POST['course'.$index]

You don't need to extract($_POST) in that case.