Welcome Guest, Not a member yet? Register   Sign In
Submitting an Unknown Number of Field Elements
#6

[eluser]jedd[/eluser]
[quote author="JoeLongstreet" date="1261002898"]
What does 'normalise your schema' mean?
[/quote]

[url="http://tinyurl.com/yjjdvla"]http://tinyurl.com/yjjdvla[/url]


Quote:Right now this is just a test application so the columns in my database are id and guest

How many tables do you have? Or rather, how are you storing multiple email addresses per person?

Quote:I'm still building on this same problem, but how would I test multiple input fields for validation.

It's not that there are multiple, but that they are unknown numbers of these items, albeit with predictable names.

I have no idea - but I'd guess one way you could do it would be to loop through a ->set_rules() call, passing the email[x] parameters that you had extracted from $post already.

There may well be a neater way though.

What do you mean by 'it only works if the input fields are blank' ?


Messages In This Thread
Submitting an Unknown Number of Field Elements - by El Forum - 12-15-2009, 02:38 PM
Submitting an Unknown Number of Field Elements - by El Forum - 12-15-2009, 03:28 PM
Submitting an Unknown Number of Field Elements - by El Forum - 12-15-2009, 04:40 PM
Submitting an Unknown Number of Field Elements - by El Forum - 12-15-2009, 05:23 PM
Submitting an Unknown Number of Field Elements - by El Forum - 12-16-2009, 10:34 AM
Submitting an Unknown Number of Field Elements - by El Forum - 12-16-2009, 10:58 AM
Submitting an Unknown Number of Field Elements - by El Forum - 12-16-2009, 08:54 PM
Submitting an Unknown Number of Field Elements - by El Forum - 12-17-2009, 06:41 AM
Submitting an Unknown Number of Field Elements - by El Forum - 12-19-2009, 11:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB