this worked for me. <? $entries = 20; for ($i=1; $i<=$entries; $i++) { if(isset($_POST["resolutions$i"]) && $_POST["resolutions$i"] !== ''){ echo "Hello $i<br />"; } }
?> <html> <body> <form method="POST"> <input type="hidden" name="resolutions1" value="etefgtE" /> <input type="hidden" name="resolutions3" value="etefgtE" /> <input type="hidden" name="resolutions5" value="etefgtE" /> <input type="hidden" name="resolutions6" value="etefgtE" /> <input type="hidden" name="resolutions15" value="etefgtE" /> <input type="hidden" name="resolutions12" value="" /> <input type="submit" name="submit" /> </form> </body> </html> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php