mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
- Ongoing deduplication/conversion of post.php to use re-usable 'models' for input - Also converting file upload checks to use a function instead
7 lines
282 B
PHP
7 lines
282 B
PHP
<?php
|
|
$name = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['name'])));
|
|
$description = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['description'])));
|
|
$price = floatval($_POST['price']);
|
|
$category = intval($_POST['category']);
|
|
$tax = intval($_POST['tax']);
|