Welcome Guest, Not a member yet? Register   Sign In
validation class with multiple pages
#3

[eluser]Michael Wales[/eluser]
I find the easiest way to do multiple page forms is treat them as completely seperate forms.

psuedo-code
Code:
// Page 1
validation shizzle
if (val->run()) {
  insert into db
  redirect to next page
} else {
  show errors
}

Code:
// Page 2
validation shizzle
if (val->run()) {
  update record from page 1
  redirect to next page
} else {
  show errors
}


Messages In This Thread
validation class with multiple pages - by El Forum - 09-12-2007, 04:18 AM
validation class with multiple pages - by El Forum - 09-12-2007, 04:56 AM
validation class with multiple pages - by El Forum - 09-12-2007, 06:28 AM
validation class with multiple pages - by El Forum - 09-12-2007, 06:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB