PHP Sessions

  • Liamw411
  • Beginner
  • Beginner
  • Liamw411
  • Posts: 44
  • Loc: United Kingdom

Post 3+ Months Ago


I am creating a three page multi-page form, I am initially posting the data between them and then allowing PHP to validate and then on an error set a specific session for an error message and the incorrect field and then use the created session as a class on the appropriate HTML element. the code i have works fine, the only issue I have is that once the session is set it displays the error message's constantly even when change to a different page and then back. I know i need to unset or destroy the sessions but this would stop the error messages displaying in the event of an error.

I hope I have been able to explain myself properly and that somebody here will know how to remedy this.

thanks liam.


I have been messing with this for a little while and have found a solution. to fix, set a variable = session and then unset the session.

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 38 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.