Skip to content

Instantly share code, notes, and snippets.

@Mozartted
Last active January 31, 2017 10:57
Show Gist options
  • Save Mozartted/2b6f6e5a146e3d9df880f981890b2a64 to your computer and use it in GitHub Desktop.
Save Mozartted/2b6f6e5a146e3d9df880f981890b2a64 to your computer and use it in GitHub Desktop.
parse_str(file_get_contents("php://input"),$post_vars); //why this ?... the post could have gotten the values without it...
$getProject->project_name = filter_var($post_vars['newProjectname'], FILTER_SANITIZE_STRING);
$getProject->due_date = trim($post_vars['newDate']);
$getProject->status = filter_var($post_vars['newTeam']);
$getProject->dept_id = filter_var($post_vars['newDeptId']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment