[eluser]fidlet[/eluser]
I'm new at Codeigniter (and heavy programming in general), and am trying to set up a form so that when a user changes a certain form value, and hits submit, the changed form value is checked and, if it's equal to a certain value, an email is sent. So, the logic would run roughly as follows:
1. If the user changes form value x, then note it (set a variable?)
2. When the user hits submit, and the changed value variable is set, then check wether x = value y.
3. If x = y, then send email.
I'm not sure if javascript (onChange event) is the best way to check for a changed value, or if there is something else (perhaps within Codeigniter?) that would serve this purpose better.