-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
34 lines (29 loc) · 859 Bytes
/
single.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
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div>I hit single</div>
<?php/*
if(!empty($_POST['update'])){
$name = $_POST['name'];
switch($name){
case 'face-form':
update_option('face_pic', sanitize_file_name($_POST['face-path']));
break;
case 'projectOne':
update_option('project_one', array(
'pic_name' => sanitize_file_name($_POST['project-one-path.php']),
'description' => sanitize_textarea_field($_POST['project-one-text']),
'title' => sanitize_text_field($_POST['project-one-title'])
), '', yes);
break;
default:
break;
}
header('Location: http://localhost/myportfolio/');
die;
}*/
?>
</body>
</html>