finding words using the letters php
i need somting like [this][1] but simpler is possible do in php.<BR>
I tried something with the array but it seems impossible.<BR><BR>
HTML
    

    <input name="box1" type="text">
    <input name="box2" type="text">
    <input name="box3" type="text">
    <input name="box4" type="text">

PHP
> $box1 = $_POST['box1']; $box2 = $_POST['box2']; $box3 =
> $_POST['box3']; $box4 = $_POST['box4'];<BR><BR>
> 
> $array = array('best','cake','test','taxi');<BR><BR>
> 
> $y=0; $x=0;<BR><BR>
> 
> while($y<4) { <BR>for ($x=0; $x<=sizeof($array); $x++)<BR>{	
> 	if($box1==$array[$x][$y] && $box2==$array[$x][$y] &&
> $box3==$array[$x][$y] && $box4==$array[$x][$y]){ 	<BR>echo $array[$x];<BR> 	}
> } <BR>	$y++;<BR> }



  [1]: http://www.thewordfinder.com/scrabble.php
finding words using the letters php
===

i need somting like [this][1] but simpler is possible do in php.<BR>
I tried something with the array but it seems impossible.<BR><BR>
HTML
    

    <input name="box1" type="text">
    <input name="box2" type="text">
    <input name="box3" type="text">
    <input name="box4" type="text">

PHP
> $box1 = $_POST['box1']; $box2 = $_POST['box2']; $box3 =
> $_POST['box3']; $box4 = $_POST['box4'];<BR><BR>
> 
> $array = array('best','cake','test','taxi');<BR><BR>
> 
> $y=0; $x=0;<BR><BR>
> 
> while($y<4) { <BR>for ($x=0; $x<=sizeof($array); $x++)<BR>{	
> 	if($box1==$array[$x][$y] && $box2==$array[$x][$y] &&
> $box3==$array[$x][$y] && $box4==$array[$x][$y]){ 	<BR>echo $array[$x];<BR> 	}
> } <BR>	$y++;<BR> }



  [1]: http://www.thewordfinder.com/scrabble.php