Welcome Guest, Not a member yet? Register   Sign In
i have problem!
#1

[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 ?
#2

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

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

[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
#5

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB