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>';
> }
If you are getting absolutely nothing on the screen, either you have a
bug in the code & the server is suppressing the error, or $_POST isn't
being set since "something" would be displayed if the for() happened.
In the case you are presenting, the for() doesn't seem to be happening
at all. Do a print_r($_POST) and verify that 'pictures' has a value.
bp