CodeIgniter Forums
i have problem! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: i have problem! (/showthread.php?tid=12761)



i have problem! - El Forum - 10-30-2008

[eluser]zeros0[/eluser]
hello.

If i dont wanna show

A PHP Error was encountered

Severity: Notice

Message: Undefined index: repassword

Filename: controllers/form.php

Line Number: 21


How can i do ?


i have problem! - El Forum - 10-30-2008

[eluser]elvix[/eluser]
set error reporting to 0 in your app's index.php.


i have problem! - El Forum - 10-30-2008

[eluser]zeros0[/eluser]
ok, but if i the real solution? or just the fast solution?!


i have problem! - El Forum - 10-30-2008

[eluser]Firstrow[/eluser]
[quote author="zeros0" date="1225397008"]ok, but if i the real solution? or just the fast solution?![/quote]

set $repassword when calling function in controllers/form.php

or set error reporting in .htaccess to 0

or in index.php

error_reporting(E_ALL ^ E_NOTICE);

or right way:

function form($id,$repassword = 0)
{
//func code
}

that set $repassword to 0 by default


i have problem! - El Forum - 10-30-2008

[eluser]zeros0[/eluser]
thanks !!..


i have problem! - El Forum - 10-30-2008

[eluser]drewbee[/eluser]
This is a temporary solution. The real solution would be to code properly. IE defining variables before using them. But then again I'm an elitist when it comes to this stuff... Smile