I have this form that creates a certain amount of txt fields depending on what the user slected on the last form. It could be only 2 or as many as 6.
Now, on this next page i have to check and make sure all the txt fields have some text entered into them..BUT i have no way of knowing how many txtfields were created.
So my question is, how do i check the fields that do excist for entries?
Currently i am checking all 6 fields and if any of them are blank it gives an error. But this is a problem if there are only 3 fields..thes user cant fill all 6 fields cause there is only 3.
So would i use Isset to see if the txtfield is even there in the first place. Like
If (isset($txtItem3) == "")
$ErrorMessage = "Field 3 can not be empty";
THanks!😃