# Foreach() invalid argument with jquery.validate

**URL:** https://forum.kirupa.com/t/foreach-invalid-argument-with-jquery-validate/291293
**Category:** Uncategorized
**Created:** [June 27, 2009, 2:43pm UTC](https://forum.kirupa.com/t/foreach-invalid-argument-with-jquery-validate/291293 "2009-06-27T14:43:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Khepri](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@Khepri](https://forum.kirupa.com/u/Khepri)
#### Post date: [June 27, 2009, 2:43pm UTC](https://forum.kirupa.com/t/foreach-invalid-argument-with-jquery-validate/291293/1 "2009-06-27T14:43:01Z")

</div>

Hello Everyone!  
This is my first extended form and I just don’t get the error with foreach() and my jquery.validate.js. When I do not have the foreach() the validator shows where information is missing in required input areas. However when I emplement foreach() the validator is disabled and instead I get the following error:  
**Warning** : Invalid argument supplied for foreach() in …  
Why? How can I fix it?  
Thank you!  
Khepri

Here are the links to find the files I am referring to:  
[http://www.khepristudio.com/kidzgoneagain/workingtest.php](http://www.khepristudio.com/kidzgoneagain/workingtest.php)  
You can also find in the same folder the following files:  
phpcode.txt  
jquery.txt  
jquery.validate.txt  
jquery.extend.txt
