Skip to content

Commit

Permalink
added newTeacher.php
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed May 15, 2024
1 parent c427f7d commit 89773e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions api/newTeacher.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
include_once(dirname(__FILE__) . "/secrets.php");


$name = $_POST['name'];
$msg = "Name: " . $name;

for ($i=0; $i < count(EMAILS); $i++) {
mail(EMAILS[$i], "CESCOLEAKS Teacher request", $msg);
}

?>
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ <h1 class="main-header-title-text2">cl</p>
<img class="standard-popup-close-img" draggable="false" src="./images/close.svg" alt="close icon">
</button>
<div class="standard-popup-content add-popup">
<div class="select-image">
<!-- <div class="select-image">
<input id="uploadPhoto" class="upload-photo" type="file">
<img id="previewImage" class="preview-image" src="./images/upload.png">
</div>
<input class="standard-input insert-name" type="text" placeholder="Entrer un nom">
</div> -->
<input class="standard-input insert-name" type="text" placeholder="Nom complet du prof.">
<button class="standard-button send-request">Envoyer</button>
</div>
</div>
Expand Down

0 comments on commit 89773e1

Please sign in to comment.