mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
POST input deduplication/'models'
- Ongoing deduplication/conversion of post.php to use re-usable 'models' for input - Also converting file upload checks to use a function instead
This commit is contained in:
9
models/trip.php
Normal file
9
models/trip.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$date = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['date'])));
|
||||
$source = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['source'])));
|
||||
$destination = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['destination'])));
|
||||
$miles = floatval($_POST['miles']);
|
||||
$roundtrip = intval($_POST['roundtrip']);
|
||||
$purpose = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['purpose'])));
|
||||
$user_id = intval($_POST['user']);
|
||||
$client_id = intval($_POST['client']);
|
||||
Reference in New Issue
Block a user