Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7821397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:38:15+00:00 2026-06-02T07:38:15+00:00

I was wondering what would be the best way to display informative form warning

  • 0

I was wondering what would be the best way to display informative form warning messages using CodeIgniter. Similar to the error messages thrown by CodeIgniter’s form validation, but you can still proceed with the action when a warning message is shown.


For example, at the moment, I’m creating a system that allows users to sign-up for events. Administrators can add events to the system. There are two date/times associated with each event.

  • Sign-up open time: This is the date and time when people can start to sign-up for an event
  • Event start time: This is when the event actually starts

Validation takes place to ensure that the ‘sign-up open time’ is before the ‘event start time’- if it’s not, an error message is shown.

However for around 95% of events, the ‘sign-up open time’ will be two days before the ‘event start time’. For the other events the difference could be much larger.

It would be desirable to show the user a warning if the difference between the two dates is larger than two days. Even if a warning message (not error message) is shown the user should still be able to proceed with their action (for example, adding a new event to the database), as long as the validation has passed.


Is there a recommended way to process and display warning messages?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:38:18+00:00Added an answer on June 2, 2026 at 7:38 am

    I use flash_messages for this sort of stuff.

    All my views have a function, so whenever I need to tell the user something – it will show up on any & all pages.

    Then when you proces the form, you’ll accept it, but you’ll test for the “warning”. If the warning is found, then set a flash_message with your warning message. Whatever screen the user sees next will show them the warning.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im just wondering what would the best way to display multiple instances of a
i was wondering what would be the best way to code a browser plugin
I recently started learning backbone and was wondering what would be the best way
I was wondering, what would be the best way to validate an integer. I'd
I've been wondering what the best way to do this would be. I've got
Wondering what the best / good way of doing this would be in jQuery.
I was wondering what is the best way to display a big PDF file
I'm just wondering, as a hypothetical example, what would be the best way to
I am new C#, I was wondering what the best way would be to
I am wondering what would be the best way to vectorize the following formula:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.