forked from if-itb/IF3110-2015-T1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-question.php
44 lines (36 loc) · 1.37 KB
/
form-question.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
require_once("connection.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>StackExchange</title>
<link href='https://fonts.googleapis.com/css?family=Titillium+Web|Source+Sans+Pro|Droid+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script type="text/javascript" src="js/validation.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<h1>
<a href="index.php">Simple StackExchange</a>
</h1>
</div>
<div class="wrapper">
<div class="title">
<h2>What's your question</h2>
</div>
<form name="question-form" role="form" method="post" action="add-question.php" onsubmit="return validateForms()" class="question-form">
<input type="text" name="name" placeholder="Name" class="content-question-form" autofocus>
<input type="text" name="email" placeholder="Email" class="content-question-form">
<input type="text" name="topic" placeholder="Question Topic" class="content-question-form">
<textarea rows="10" name="content" cols="106" placeholder="Content" class="textarea-question-form"></textarea>
<input name="post-button" type="submit" value="Post" class="post-button">
</form>
</div>
</div>
</body>
</html>