Subversion Repositories cheapmusic

Rev

Rev 70 | Rev 120 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 73
Line 43... Line 43...
43
                $wlArr = [];
43
                $wlArr = [];
44
                $wlArr["id"] = $_POST['id'];
44
                $wlArr["id"] = $_POST['id'];
45
                $wlArr["artist"] = $_POST['artist'];
45
                $wlArr["artist"] = $_POST['artist'];
46
                $wlArr["title"] = $_POST['title'];
46
                $wlArr["title"] = $_POST['title'];
47
                $wlArr["barcode"] = $_POST['barcode'];
47
                $wlArr["barcode"] = $_POST['barcode'];
-
 
48
                $wlArr["cond"] = $_POST['cond'];
48
                $wlArr["format"] = $_POST['format'];
49
                $wlArr["format"] = $_POST['format'];
49
                $wlArr["price"] = $_POST['price'];
50
                $wlArr["price"] = $_POST['price'];
50
 
51
 
51
                if (empty($wlArr['id']) || $wlArr['id'] < 0) {
52
                if (empty($wlArr['id']) || $wlArr['id'] < 0) {
52
                    $msg = "Internal Error. Please reload page.";
53
                    $msg = "Internal Error. Please reload page.";
Line 65... Line 66...
65
 
66
 
66
                if (!empty($wlArr['price'])) {
67
                if (!empty($wlArr['price'])) {
67
                    if (!is_numeric($wlArr['price']) || $wlArr['price'] < 0) {
68
                    if (!is_numeric($wlArr['price']) || $wlArr['price'] < 0) {
68
                        $msg = "Invalid Ceiling Price. Please correct.";
69
                        $msg = "Invalid Ceiling Price. Please correct.";
69
                    }
70
                    }
-
 
71
                }
-
 
72
 
-
 
73
                if (empty($wlArr['cond']) || !in_array($wlArr['cond'], $condArr)) {
-
 
74
                    $msg = "Invalid Condition. Please correct.";
70
                }
75
                }
71
 
76
 
72
                if (empty($wlArr['format']) || !in_array($wlArr['format'], $formatArr)) {
77
                if (empty($wlArr['format']) || !in_array($wlArr['format'], $formatArr)) {
73
                    $msg = "Invalid Format. Please correct.";
78
                    $msg = "Invalid Format. Please correct.";
74
                }
79
                }