Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Callback Error Message Not Showing Where Should Be
#2

[eluser]Tim Brownlaw[/eluser]
Well you are relying on if($error_warning) to evaluate to TRUE or False
Does it?

It seems to be coming back as False which would be the case if I have understood your issue correctly..

Does it get set to anything?

Anything inside an if(...) has to evaluate to Either True or False.

At a guess you need to be testing for it Not being set to an empty string.
Code:
if($error_warning != '' )

To see what it is doing - do a var_dump($error_warning) and test it for when it should show errors and when it shouldn't.

Next part: If you want to have all the errors appear at the top - why not use the inbuilt validation_errors()?
ie
Code:
<?php echo validation_errors(); ?>


Messages In This Thread
[SOLVED] Callback Error Message Not Showing Where Should Be - by El Forum - 07-20-2014, 07:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB