|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Easy how to loop thru $_POST array?
Hi,
Suppose I have these $_POST variables after submit a form $_POST['x'] $_POST['var1'] $_POST['var2'] $_POST['var3'] $_POST['var4'] $_POST['a'] Is there a simple way to loop thru to check only $_POST['var1'] $_POST['var2'] $_POST['var3'] $_POST['var4'] to see if any of them is empty? Thanks, John |
|
#2
|
|||
|
|||
|
PHP Code:
You could also use foreach, but I like for better ;P
__________________
Eric Coleman - Co-Owner ZaireWeb Solutions eric.coleman@zaireweb.com http://sitemod.net - sitemodCMS Coming Soon! |
|
#3
|
|||
|
|||
|
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Easy how to loop thru $_POST array? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|