| Download
Project: Peter's Files
Views: 331Visibility: Unlisted (only visible to those who know the link)
<!DOCTYPE html>1<html>2<head>3<link href="favicon.ico" rel="icon" type="image/x-icon">4<link crossorigin="anonymous" href=5"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"6integrity=7"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"8rel="stylesheet">9<meta content="width=device-width, initial-scale=1.0" name="viewport">10<title>11Submit Story12</title>13</head>14<body>15<div id="main" style="text-align:center; position: relative;">16<h1>17Submit Story18</h1>19<br>20<div id="form_container" style="width:350px; text-align:center; padding:10px; margin-left: auto ; margin-right: auto ;">21<form action = "Format_Storiies.php" method = "post">22<input name="title" type="text" placeholder="Title" style="width:100%;">23<br>24<input name="date" type="text" placeholder="Date" style="width:100%;">25<br>26<textarea name="Story" type="text" placeholder="Story" style="width:100%; height:300px"></textarea>27<br>28<br>29<button id="submit" type="submit" onClick="submit()" style="width:100%;">Submit</button>30<button id="clear" onClick="this.form.reset()" style="width:100%;">Clear</button>31</form>32<?php33// $fileLocation = getenv("DOCUMENT_ROOT") . "/new_stories.txt";34// $file = fopen($fileLocation,"w");3536echo $_POST['title']37// $date = $_POST['date'];38// $story = $_POST['story'];3940// $content = "\story{" + $title + "}{" + $date + "}{" + $story + "}";41// fwrite($file,$content);42// fclose($file);43?>44</div>45</div>4647</body>4849</html>50515253545556575859606162636465