-3
Inside the insert.php file I have a function that validates sending to the database and then sends a return email, the problem that when checking the send.php file that will execute the code of the following error.
Fatal error: Call to Undefined method email::envioemail() in
Follows:
insert.php
include("envia.php");
$envia=new email();
$envia->envioemail();
php sending.
class email {
function enviaemail() {
envioemail
forenviaemail
, is a the by a to.– William Novak
The name of the include file is also wrong. Tip: Class name starts with uppercase letter, and better always declare the scope of a method.
– Leonardo
Kkkkkkk do not believe. The file is right. I write wrong there. After lunch I test.
– Willian Coqueiro
is calling "envioemail()" and the method name is "enviaemail()".. notice the error? changed the letter "a" by the letter "o".
– Daniel Omine
Yes. kkk was the problem.
– Willian Coqueiro