💻
Code Zero Project
  • introduction
  • Welcome
  • getting started
    • apa itu mini mvc php native
    • Installation
  • architecture consept
  • database
    • PDO
    • connection
    • migrations
    • query builder
    • result database
  • basic
    • models
    • controller
    • view
    • routing
    • markdown
  • helper
    • session
    • input
    • maintenance
    • debug
    • waktu
    • agent
    • email
    • get_rest_api
    • upload directory
    • asset
    • 404
    • redirect
    • random file name
    • url
    • slug
    • upload files
    • read markdown
    • Security
  • frontend
    • basic html
  • libraries
  • science
    • mathecmatic
    • ML
  • command shell
  • API
  • donation
  • about
Powered by GitBook
On this page
  • Introduction
  • Basic usage
  • post()
  • get()
  • html()
  1. helper

input

input file menggunakan metod POST dan GET

Introduction

untuk melakukan sanitaze yang tidak berulang ditulis secara native , saya menambahkan sanitasize untuk decode script html tag untuk menghandle xss atau membuat prevent xss dari payload. menginputkan script payload html tidak akan dieksekusi, melaikan akan dirubah ke dalam bentuk string.

Basic usage

# call class
use MiniMvc\Apps\Core\Bootstraping\Request;

# used method | example post()
$data = Request::post("name");

post()

untuk metode $_POST

$data = Request::post("name");

get()

untuk metode $_GET

$data = Request::get("name");

html()

untuk metode $_POST untuk character html code, dan biasanya digunakan dengan text-editor atau wysg.

$data = Request::html("name");

PrevioussessionNextmaintenance

Last updated 3 years ago