-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit.php
More file actions
34 lines (29 loc) · 757 Bytes
/
submit.php
File metadata and controls
34 lines (29 loc) · 757 Bytes
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
<?php
/**
* Created by PhpStorm.
* User: shady
* Date: 3/3/19
* Time: 7:40 AM
*
*/
include 'functions.php';
if( isset($_GET["products"]) && !empty($_GET["products"]) ){
$ids = explode(',', $_GET["products"]);
$products = shop_items();
foreach( $ids as $id ){
echo $products[$id]["name"]. "<br>";
}
}
if(isset($_GET["todos"]) && !empty($_GET["todos"])){
$data = json_decode($_GET["todos"],true);
foreach($data as $row ){
if($row["id"] == "nan"){
echo "create task: " . $row["item"] . "<br>";
}else{
echo "update task: " . $row["id"] . " - " . $row["item"] . "<br>";
}
}
}
if(isset($_POST["wizard"]) && !empty($_POST["wizard"])){
var_dump($_POST['wizard']);
}