Welcome Guest, Not a member yet? Register   Sign In
Help with update profile page
#5

[eluser]mddd[/eluser]
I'm sorry you feel that way. It is true that some questions are easier to answer than others. But also that some questions are asked more clearly than others. In your case, I have the feeling that you are combining techniques and that is causing problems:

You are using the validation library only partially and that doesn't work very well. The reason is that the validation library starts by reading from $_POST but then does its own handling of the information. So it could be that, when there are errors, you see your new values because they have been set by the validation library, but if everything goes well, you get the old values from the database because you are setting them by hand : $_POST = $result. My advice is to either do everything yourself, or use the validation library for everything.

Also, in your code I don't see anywhere that the data is being saved. Maybe you left it out, but it's hard for people to answer a very specific case if they have to guess about some aspects.


Messages In This Thread
Help with update profile page - by El Forum - 06-01-2010, 05:33 AM
Help with update profile page - by El Forum - 06-01-2010, 05:39 AM
Help with update profile page - by El Forum - 06-01-2010, 05:41 AM
Help with update profile page - by El Forum - 06-09-2010, 12:42 AM
Help with update profile page - by El Forum - 06-09-2010, 02:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB