Add youtube archiving
This commit is contained in:
parent
dfbebcf006
commit
82fbaf74cd
|
@ -0,0 +1,11 @@
|
|||
<?php include("../heading.php") ?>
|
||||
<h1>Request for me to archive YouTube Videos</h1>
|
||||
<form action="./send.php" method="post">
|
||||
<label for="urls">Youtube urls: </label>
|
||||
<br>
|
||||
<textarea name="urls" id="urls" cols="30" rows="10"></textarea>
|
||||
<br>
|
||||
<input type="submit" value="Request">
|
||||
</form>
|
||||
<p>Or if you perfer email: <a href="mailto:tytd@tesses.net">tytd@tesses.net</a></p>
|
||||
<?php include("../footer.php") ?>
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
if(isset($_POST["urls"]))
|
||||
{
|
||||
$to_email = 'tytd@tesses.net';
|
||||
$subject = 'Anonymous Email';
|
||||
$headers ='Content-Type: text/plain';
|
||||
mail($to_email,$subject,$_POST["urls"],$headers);
|
||||
echo '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Success</title></head><body><h1>Success</h1><a href=".">Click here</a> to return</body></html>';
|
||||
}
|
||||
else{
|
||||
echo '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Failure</title></head><body><h1>Failure</h1><a href=".">Click here</a> to return</body></html>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue