survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit e1626698b54e19efb70ab2866307e9453236760d
parent 744d4d69b8b8170ab62f47092780f946620a6244
Author: John Kubach <johnkubach@gmail.com>
Date:   Mon, 17 Dec 2018 22:10:09 -0500

placeholder text for text boxes

Diffstat:
Mwebsite/questions.php | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/website/questions.php b/website/questions.php @@ -8,16 +8,16 @@ echo '<h2> Enter the questions for your survey </h2>'; if (isset($_SESSION['questions'])) { $questions = $_SESSION['questions']; - $questionNum = $counter + 1; echo "<form class='question-form' method = 'POST' action = 'res/submit-questions.php'>"; for($counter = 0; $counter < $questions; $counter++) { + $questionNum = $counter + 1; echo "<input type = 'text' name = 'questions[]' class = 'questions' placeholder='Question $questionNum' /><br/>"; } echo "<input type = 'submit' value = 'SEND'/>"; echo "</form>"; } else { - header("Location: res/nope.php"); - exit(); + header("Location: res/nope.php"); + exit(); } ?> </html>