/hosting/solari/public_html/contato.php(5)
01 <?
02 include_once("extranet/config-yii.php");
03 $contato = new Contato();
04 $atributos = $contato->attributeLabels();
05 if($_POST['grava'] == 1){
06 $contato->attributes = $_POST['Contato'];
07 $contato->data = date('Y-m-d H:i:s');
08 $contato->ip = $_SERVER['REMOTE_ADDR'];
09 if($contato->save()){
10 $contato = new Contato();
11 $_GET['sucesso'] = 1;
12 header("Location: contato.php?sucesso=1");
13 }
14 }
15 ?>
16 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
17 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br" lang="pt-br"/>
| #0 |
+
–
/hosting/solari/public_html/yii/framework/base/CErrorHandler.php(110): CErrorHandler->handleError(CErrorEvent) 105 } |
| #1 |
+
–
/hosting/solari/public_html/yii/framework/base/CApplication.php(797): CErrorHandler->handle(CErrorEvent) 792 $this->onError($event); |
| #2 |
+
–
/hosting/solari/public_html/contato.php(5): CApplication->handleError(2, "Undefined array key "grava"", "/hosting/solari/public_html/contato.php", 5) 01 <? |