• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
validation dont't show message

[quote author="kiyo" date="1243589529"]thank you very much
I write code from guideline

new screenshot << validate error don't show mesage

I change a little in controller/register.php
class Register Extends Controller{
        function _construct() { // for php5


        function index(){
            $data["head"] = "register new user";
            $data["title"] = "form register new user";
            $data["meta"] = "register form ";
        function register_process(){
           $data["head"] = "register new user";
            $data["title"] = "form register error";
            $data["meta"] = "register form ";

            if($this->form_validation->run() == false){
                echo "complete";

and this is a view/register_process.php
&lt;?php echo var_dump(validation_errors()); ?&gt; //try to dump data but it empty ,why?


<table width="360" border="0" cellspacing="0" cellpadding="1">
    <td width="179"><div align="right">username</div></td>
    <td width="177">&lt;input name="username" type="text" id="username" value ="&lt;?=set_value("username","1")?&gt;"/&gt;&lt;/td>

    <td>&lt;input type="submit" name="Submit" value="Submit" /&gt;&lt;/td>

i guess you are mixing views... in the controller "register_view" is loaded, but you show "register_process" view.

Thank for all reply

I know one thing The code isn't error. because

I try to test anothor computer it work!!! , WHY???

..focus on my computer

I reinstall apache+php again and again but it doesn't work. (default php.ini it still doen't work)

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.