LuCiaNo - CeTre wrote:
> 
> 
> Wade Smart wrote:
>  >
>  > 20080808 1436 GMT-6
>  >
>  > Today is one of those days where I just cant see what is wrong.
>  > This is from a form where the teach puts in a number, in this case 5,
>  > and for
>  > each child a certain number of input fields will be created.
>  >
>  > Im getting just a blank screen.
>  >
>  > for($i=1; $i>=$_POST['pictures']; $i++){
>  > print'<div class="form">
>  > <select class="input-box" name="name">';
>  > // array of students populated from db.
>  > foreach($student_name as $name){
>  > print'<option value="'.$name.'">$name</option>';
>  > }
>  > print'</select>
>  > </div>';
>  > }
>  >
> 
> On the for i think that is so: for($i=1; $i>=count($_POST['pictures']);
> $i++)
> 

count() is for counting elements in an array, that won't do what he's 
trying to accomplish...

Reply via email to