Forum Moderators: coopster
<input type="text" name="aName[]">
<input type="text" name="aName[]">
<input type="text" name="aName[]">
<input type="text" name="aName[]">
I need to "clean" this info before inserting it into a database, etc.
I have tried using the following (which throws out errors each time):
$aName = htmlspecialchars(addslashes($_POST['aName']));
and
if(is_array($appr))
{
for ($i=0;$i<count($aName);$i++)
{
$aName[$i] = htmlspecialchars(addslashes($_POST['aName[$i]']));
How can I clean this info?
Any and all help is greatly appreciated.
Regards,
IamStang