Here's one that has me stumped.
I am storing the $_POST array in a mysql database. I am using JavaScript to dynamically create input fields on my form too but if an input field is empty is still gets inserted into the database (obviously).
Is there anyway to go through the POST array and filter these empty values out?
EDIT:
Using WordPress but same idea:
<?php
foreach($_POST['eirepanel_inline_ads_options_name'] as $post_eirepanel_inline_ads_options_name):
if(empty($post_eirepanel_inline_ads_options_name)):
echo 'empty';
else:
update_option('eirepanel_inline_ads_options', $_POST);
$eirepanel_inline_ads_options = get_option('eirepanel_inline_ads_options');
endif;
endforeach;
?>