Welcome Guest, Not a member yet? Register   Sign In
questions about forms
#4

[eluser]comex[/eluser]
Well, in your example with the array $posted.
I'm assuming that you're looping through $posted 20 times and echo each value?
If you'd just do a foreach-loop or check the size of the array before and loop through the available entries.

Or have you hard-coded the 20 echos? =)

I always check if a variable is set before doing anything with it. But I guess if you're not suffering any visual problems, why not? =)
You could be at a performance loss though, but I'll leave that up to the experts to decide =)


Messages In This Thread
questions about forms - by El Forum - 08-10-2009, 10:03 AM
questions about forms - by El Forum - 08-10-2009, 10:34 AM
questions about forms - by El Forum - 08-10-2009, 10:59 AM
questions about forms - by El Forum - 08-10-2009, 11:07 AM
questions about forms - by El Forum - 08-10-2009, 11:21 AM
questions about forms - by El Forum - 08-10-2009, 11:43 AM
questions about forms - by El Forum - 08-10-2009, 11:46 AM
questions about forms - by El Forum - 08-10-2009, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB