edituser.php
Quote:
if (count($errors) > 0) {
include XOOPS_ROOT_PATH.'/header.php';
echo '<div>';
foreach ($errors as $er) {
echo '<span style="color: #ff0000; font-weight: bold;">'.$er.'</span><br />';
}
echo '</div><br />';
$op = 'editprofile';
} else {
The above post code works fine. When ever the Real name is blank or Extra info is blank it gives the relevant error message. Only problem is that the error message is not comming at the place where its expected. Rather the the first line of the html page contains the error message and then comes the code of the page. Where as i was expecting header to come first and then the error message. Given below is what i see as html source code once the page is generated
Quote:
<div><span style="color: #ff0000; font-weight: bold;">Real Name is missing</span><br /></div><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Some how the error message is comming before the header. Am i missing something here.. could you look into this please.
Thanks