未重新加载页面的url中出现PHP发送错误

未重新加载页面的url中出现PHP发送错误,php,html,css,url,Php,Html,Css,Url,我有这个错误php脚本用于显示我的错误(它来自url) 对不起,我的英语不好。请阅读。这允许您向服务器发送数据并在后台接收响应(使用javascript),而无需重新加载页面。 if (isset($_GET["error"])) { /* Se Trovi "campo.vuoto" Nell'Url*/ if ($_GET["error"] == "campo.vuoto") { /* Mostra

我有这个错误php脚本用于显示我的错误(它来自url)

对不起,我的英语不好。

请阅读。这允许您向服务器发送数据并在后台接收响应(使用javascript),而无需重新加载页面。
  if (isset($_GET["error"])) {

/* Se Trovi "campo.vuoto" Nell'Url*/
if ($_GET["error"] == "campo.vuoto") {

  /* Mostra Messagigo */
  echo '<p style="font-size: 90%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto !important;margin-right: auto !important;margin: 0px;padding-top: 2vh;line-height: 2vh;">Qualcosa è andato storto...</p>';
  echo '<p style="font-size: 69%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto;margin-right: auto;line-height: 2vh;padding-bottom: 2vh;border-bottom: 1px solid #ffffff4d;margin-top: 0px;padding-top: 1vh;">Non hai compilato tutti i campi</p>';
}

/* Se Trovi "email.non.valida" Nell'Url*/
if ($_GET["error"] == "email.non.valida") {

  /* Mostra Messagigo */
  echo '<p style="font-size: 90%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto !important;margin-right: auto !important;margin: 0px;padding-top: 2vh;line-height: 2vh;">Qualcosa è andato storto...</p>';
  echo '<p style="font-size: 69%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto;margin-right: auto;line-height: 2vh;padding-bottom: 2vh;border-bottom: 1px solid #ffffff4d;margin-top: 0px;padding-top: 1vh;">E-Mail non valida.</p>';
}

/* Se Trovi "nickname.non.valido" Nell'Url*/
if ($_GET["error"] == "nickname.non.valido") {

  /* Mostra Messagigo */
  echo '<p style="font-size: 90%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto !important;margin-right: auto !important;margin: 0px;padding-top: 2vh;line-height: 2vh;">Qualcosa è andato storto...</p>';
  echo '<p style="font-size: 69%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto;margin-right: auto;line-height: 2vh;padding-bottom: 2vh;border-bottom: 1px solid #ffffff4d;margin-top: 0px;padding-top: 1vh;">Non sono ammessi caratteri speciali.</p>';
}

/* Se Trovi "nickname.gia.esistente" Nell'Url*/
if ($_GET["error"] == "nickname.gia.esistente") {

  /* Mostra Messagigo */
  echo '<p style="font-size: 90%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto !important;margin-right: auto !important;margin: 0px;padding-top: 2vh;line-height: 2vh;">Qualcosa è andato storto...</p>';
  echo '<p style="font-size: 69%;color: #ffffff;font-weight: bold;text-shadow: 0 0 2px #00000047;max-width: 90%;text-align: center;margin-left: auto;margin-right: auto;line-height: 2vh;padding-bottom: 2vh;border-bottom: 1px solid #ffffff4d;margin-top: 0px;padding-top: 1vh;">Nickname o Password già esistenti.</p>';
}}
if ( /*Funzione In Errori Compilazione */ nessuna_compilazione_registrazione($EmailOttenuta, $NicknameOttenuto, $PasswordOttenuta) !== false) {
  header("location: ../index.php?error=campo.vuoto");
  exit;
}

if ( /*Funzione In Errori Compilazione */ email_non_valida($EmailOttenuta) !== false) {
  header("location: ../index.php?error=email.non.valida");
  exit;
}

if ( /*Funzione In Errori Compilazione */ nickname_non_valido($NicknameOttenuto) !== false) {
  header("location: ../index.php?error=nickname.non.valido");
  exit;
}

if ( /*Funzione In Errori Compilazione */ nickname_gia_esistente($ConnessioneDB, $NicknameOttenuto, $EmailOttenuta) !== false) {
  header("location: ../index.php?error=nickname.gia.esistente");
  exit;
}

crea_utente($ConnessioneDB, $EmailOttenuta, $NicknameOttenuto, $PasswordOttenuta, $Ruolo);


}