ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Disable Error Page and Return fields with errors in $_SESSION

January 17, 2011 3:50pm

Subscribe [1]
  • #1 / Jan 17, 2011 3:50pm

    sebastianjt

    17 posts

    Hello,

    I am trying to disable error/notification pages (Message Pages - not sure what to refer to them as) when submitting a form, and return in a $_SESSION (or other method) the fields that had errors so I can highlight them in the front-end. An example of this is a missing email address when required, it would normally give a message like:

    The following errors were encountered
    The email you submitted is not valid
    Return to Previous Page

    I would like to omit landing in this page, and instead reloading the page where the form was submitted with the email field highlighted. I would need to retrieve this error data from somewhere in this process.

    I am not sure if there are any other articles that talk about this, I looked around and found nothing.

    Any help will be greatly appreciated.
    Thanks in advance.


    Sebastián Jaramillo T.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases