commit dd178c8a2b5346a1de9c44ab842105b77d4552bb parent a16832cb71eefa20c1e7cb4c2f6f39fc0b121994 Author: Andrew <andreww107@gmail.com> Date: Thu, 20 Dec 2018 11:22:35 -0500 Update createsurvey.php Diffstat:
M | website/createsurvey.php | | | 61 | +++++++++++++++++++++++++++++++------------------------------ |
1 file changed, 31 insertions(+), 30 deletions(-)
diff --git a/website/createsurvey.php b/website/createsurvey.php @@ -14,34 +14,35 @@ if(!isset($_SESSION['uid'])){ ?> <html> - <link rel="stylesheet" href="res/style.css"> -<!-- <link rel="stylesheet" href="res/style.css"> --> - -<form class="create-survey-form" action="res/new-survey.php" method="POST"> -<h2> Create A New Survey </h2> -<p> Title & Description </p> -<input type="text" name="title" placeholder="My Amazing Survey"> <br> -<input type="text" name="description" placeholder="This is a great survey"> <br> - -<p> Answer Type </p> - <input type="radio" checked="checked" name="type" value="00"> Numeric (1 - 10) <br> -<input type="radio" name="type" value="01"> Yes / No <br> -<!-- <input type="radio" name="type" value="10"> Text <br> --> -<!-- <input type="radio" name="type" value="11"> Custom <br> --> - -<p> Number of Questions (1-10)</p> -<input type="number" name="number" placeholder="5" min="1" max="10"> <br> - -<p> Expiration Date </p> -<?php -$next_week = date("Y-m-d", strtotime("+1 week")); -echo "<input type='date' value = '$next_week' name='expire'> <br>"; -?> - <p> Can a user take this survey more than once? </p> -<input type="radio" name="once" value="0" checked> Yes <br> -<input type="radio" name="once" value="1"> No <br> - -<button type="submit" name="submit">Create Survey</button> - -</form> + <link rel="stylesheet" href="res/style.css"> + <!-- <link rel="stylesheet" href="res/style.css"> --> + + <form class="create-survey-form" action="res/new-survey.php" method="POST"> + <h2> Create A New Survey </h2> + + <p class="create"> Title & Description </p> + <input type="text" name="title" placeholder="My Amazing Survey"> <br> + <input type="text" name="description" placeholder="This is a great survey"> <br> + + <p class="create"> Answer Type: </p> + Numeric (1 - 10)<input type="radio" class="radio" checked="checked" name="type" value="00"><br> + Yes / No<input type="radio" class="radio" name="type" value="01"><br> + <!-- <input type="radio" name="type" value="10"> Text <br> --> + <!-- <input type="radio" name="type" value="11"> Custom <br> --> + + <p class="create"> Number of Questions (1-10)</p> + <input type="number" name="number" placeholder="5" min="1" max="10"> <br> + + <p class="create"> Expiration Date </p> + <?php + $next_week = date("Y-m-d", strtotime("+1 week")); + echo "<input type='date' value = '$next_week' name='expire'> <br>"; + ?> + <p class="create"> Can a user take this survey more than once? </p> + Yes<input type="radio" class="radio" name="once" value="0" checked><br> + No<input type="radio" class="radio" name="once" value="1"><br> + + <button type="submit" name="submit">Create Survey</button> + + </form> </html>