-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67d217e
commit 5d7ad7c
Showing
11 changed files
with
185 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<html> | ||
<?php | ||
include_once "../mysql_configuration/connection.php"; | ||
$conn = $GLOBALS['mysqli']; | ||
$partitaIVA = $_POST['PartitaIva']; | ||
$ragioneSociale = $_POST['RagioneSociale']; | ||
$rappresentanteLegale = $_POST['RappresentanteLegale']; | ||
$indirizzoAzienda = $_POST['IndirizzoAzienda']; | ||
$telefonoAzienda = $_POST['TelefonoAzienda']; | ||
$mailAzienda = $_POST['MailAzienda']; | ||
$sql = " | ||
INSERT INTO `aziende`(`PartitaIva`, `RagioneSociale`, `RappresentanteLegale`, `IndirizzoAzienda`, `TelefonoAzienda`, `MailAzienda`) | ||
VALUES ('$partitaIVA', '$ragioneSociale', '$rappresentanteLegale', '$indirizzoAzienda', '$telefonoAzienda', '$mailAzienda') | ||
"; | ||
if ($conn->query($sql) === TRUE) { | ||
echo "Successo"; | ||
} else { | ||
echo $conn->error; | ||
} | ||
header("Location: inserimentoAziende.html"); | ||
?> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<html> | ||
<?php | ||
include_once "../mysql_configuration/connection.php"; | ||
$conn = $GLOBALS['mysqli']; | ||
$matricola = $_POST['Matricola']; | ||
$nome = $_POST['Nome']; | ||
$cognome = $_POST['Cognome']; | ||
$dataNascita = $_POST['DataNascita']; | ||
$comuneNascita = $_POST['ComuneNascita']; | ||
$provinciaNascita = $_POST['ProvinciaNascita']; | ||
$sesso = $_POST['Sesso']; | ||
$indirizzo = $_POST['Indirizzo']; | ||
$mail = $_POST['Mail']; | ||
$telefono = $_POST['Telefono']; | ||
$sql = " | ||
INSERT INTO `studenti`(`Matricola`, `Nome`, `Cognome`, `DataNascita`, `ComuneNascita`, `ProvinciaNascita`, `Sesso`, `Indirizzo`, `Mail`, `Telefono`) | ||
VALUES ('$matricola', '$nome', '$cognome', '$dataNascita', '$comuneNascita', '$provinciaNascita', '$sesso', '$indirizzo', '$mail', '$telefono') | ||
"; | ||
if ($conn->query($sql) === TRUE) { | ||
echo "Successo"; | ||
} else { | ||
echo $conn->error; | ||
} | ||
//header("Location: inserimentoStudenti.html"); | ||
?> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<html> | ||
<?php | ||
include_once "../mysql_configuration/connection.php"; | ||
$conn = $GLOBALS['mysqli']; | ||
$nome = $_POST['Nome']; | ||
$cognome = $_POST['Cognome']; | ||
$sql = " | ||
INSERT INTO `tutorscolastici`(`Nome`, `Cognome`) | ||
VALUES ('$nome', '$cognome') | ||
"; | ||
if ($conn->query($sql) === TRUE) { | ||
echo "Successo"; | ||
} else { | ||
echo $conn->error; | ||
} | ||
header("Location: inserimentoTutorScolastici.html"); | ||
?> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,39 @@ | ||
<html> | ||
<?php | ||
include_once "../mysql_configuration/connection.php"; | ||
$conn = $GLOBALS['mysqli']; | ||
$partitaIVA = $_POST['PartitaIva']; | ||
$ragioneSociale = $_POST['RagioneSociale']; | ||
$rappresentanteLegale = $_POST['RappresentanteLegale']; | ||
$indirizzoAzienda = $_POST['IndirizzoAzienda']; | ||
$telefonoAzienda = $_POST['TelefonoAzienda']; | ||
$mailAzienda = $_POST['MailAzienda']; | ||
$sql = " | ||
INSERT INTO `aziende`(`PartitaIva`, `RagioneSociale`, `RappresentanteLegale`, `IndirizzoAzienda`, `TelefonoAzienda`, `MailAzienda`) | ||
VALUES ('$partitaIVA', '$ragioneSociale', '$rappresentanteLegale', '$indirizzoAzienda', '$telefonoAzienda', '$mailAzienda') | ||
"; | ||
if ($conn->query($sql) === TRUE) { | ||
echo "Successo"; | ||
} else { | ||
echo $conn->error; | ||
} | ||
header("Location: inserimentoAziende.html"); | ||
?> | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Inserimento delle aziende</title> | ||
<link rel="stylesheet" href="../Materials/style.css"> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<?php include("../Materials/menu.php"); ?> | ||
<div class="container"> | ||
<form id="contact" action="inserimentoAziende.php" method="post"> | ||
<h3>Inserimento azienda</h3> | ||
<fieldset> | ||
<input type="text" name="PartitaIva" placeholder="Partita Iva" tabindex="1" required autofocus> | ||
</fieldset> | ||
<fieldset> | ||
<input placeholder="Ragione Sociale" name="RagioneSociale" type="text" tabindex="2" required> | ||
</fieldset> | ||
<fieldset> | ||
<input placeholder="Rappresentante Legale" name="RappresentanteLegale" type="text" tabindex="3" required> | ||
</fieldset> | ||
<fieldset> | ||
<input placeholder="Indirizzo" name="Indirizzo" type="text" tabindex="4" required> | ||
</fieldset> | ||
<fieldset> | ||
<input placeholder="Email" name="Mail" type="email" tabindex="5" required> | ||
</fieldset> | ||
<fieldset> | ||
<input type="tel" placeholder="Numero di Telefono" name="Telefono" pattern="[0-9]{3}[0-9]{3}[0-9]{4}" tabindex="5" required> | ||
</fieldset> | ||
<fieldset> | ||
<button name="submit" type="submit" id="contact-submit" data-submit="...Sending">Inserisci</button> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<?php include("../Materials/footer.php"); ?> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.