-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate.php
32 lines (30 loc) · 1.29 KB
/
update.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
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="target">
product code:<input type="text" name="price_code"/>
set up price: <input type="text" name="price_input"/>
<button type="submit" name="set_price">set pricing</button>
</form>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="target">
product code:<input type="text" name="vol_size_input_code"/>
volume size: <input type="text" name="vol_size_input"/>
<button type="submit" name="set_vol_size">set volume size</button>
</form>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="target">
product code:<input type="text" name="vol_price_code"/>
volume price:<input type="text" name="vol_price_input"/>
<button type="submit" name="set_vol_price">set volume price</button>
</form>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="target">
product code:<input type="text" name="stock_code"/>
set up stock: <input type="text" name="stock_input"/>
<button type="submit" name="set_stock">set stock</button>
<?php
session_start();
if (isset($_SESSION['terminal_string'])) {
echo '有值';
echo $_SESSION['terminal_string'];
}
echo "CNM1";
$terminal = unserialize($_SESSION['terminal_string']);//反序列化
echo $terminal;
echo "CNM";
?>