-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathshare-experience.php
51 lines (46 loc) · 1.48 KB
/
share-experience.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
45
46
47
48
49
50
51
<?php //SHARE EXPERIENCE
session_start();
//include files
require_once("app-includes/app-include.php");
require_once("app-includes/_profile.php");
if(!isset($_GET['start']) or !isset($_GET['finish'])){
die(header('profile.php'));
}
$start = $_GET['start'];
$finish = $_GET['finish'];
$userId = $_SESSION['userId'];
?>
<!doctype html>
<html lang="en">
<head>
<title>John Doe</title>
<?php include('meta-tags.html'); ?>
<link rel="stylesheet" href="/sih/css/main.css"/>
<style>
</style>
</head>
<body>
<?php siteHeader(); ?>
<section class="index-section">
<div class="pm-box">
<ul class="pm-menu">
<a href="profile.php"><li class="pm-item pm-icon"><i class="material-icons">arrow_back</i></li></a>
<li class="pm-item pm-name"><p>SHARE YOUR EXPERIENCE</p></li>
<a href="#siteHead"><li class="pm-item pm-icon"><i class="material-icons">keyboard_arrow_up</i></li></a>
<div style="clear:both"></div>
</ul>
</div>
<div class="index-box expand-box" style="text-align:left;">
<h3>From : <?php echo $start; ?></h3>
<h3>To : <?php echo $finish; ?></h3>
<form class="ex-form" method="post" action="/sih/php/_submit-experience.php?<?php echo("user_id=$userId&start=$start&finish=$finish") ?>">
<label class="ex-label">Description</label><br/>
<textarea class="ex-input" name="content" value="" placeholder="Your experience..."></textarea><br/>
<button class="ex-button">Share</button>
</form>
</div>
</div>
</section>
<?php siteFooter(); ?>
</body>
</html>