troubleshooting Question

Checking the values of a repeated input field

Avatar of wilson1000
wilson1000 asked on
5 Comments1 Solution224 ViewsLast Modified:

I need to check the values of an input field, something similar to

  if ((isset($_POST['ins_cont_fina'])) && ($_POST['ins_cont_fina']!=""))

The problem is that the 'ins_cont_fina' field is part of a repeated region and is formatted like this

  <input type="text" name="ins_cont_fina_<?php echo $repCounter ?>" />"

I'm not great with array's at the moment and I think i need to check the values within an array to determine if any of the values state 'First Name', if they do, then the global var "$_POST['ins_cont_fina_?']" (which ever counter number it is) must be cleared.

Could anyone explain how this could be made possible please?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros