-2
Ich habe ein Problem, wenn ich versuche, diesen Code auszuführen.Ist nur ein Teil von mein CodeUndefinierter Index: E-Mail in C: xampp htdocs Auto-config application controllers www home.php in Zeile 191
Undefined index: E-Mail in C: \ xampp \ htdocs \ \ application \ Controller Auto-config \ home.php www \ on line 191
private function sendMail(){
$objConfig = Userconfig::newObj();
$objConfig->email = $this->arrRequest['email'];
$objConfig->name = $this->arrRequest['name'];
$objConfig->configuration = serialize($this->arrRequest);
$objConfig->save();
$strMessage = 'Configuratia a fost salvata!';
$this->arrRequest['success'] = $strMessage;
if(empty($this->arrRequest['name']) || empty($this->arrRequest['email']) || filter_var($this->arrRequest['email'], FILTER_VALIDATE_EMAIL)){
return false;
}
Verwenden Sie isset ($ this-> arrRequest ['email']) anstelle von $ this-> arrRequest ['email'] –
Überprüfen Sie zuerst Ihr Objekt $ objConfig, Es ist per E-Mail oder nicht !! –