You are here: Blog » Code Snippets » Extract all post variables with PHP
Extract all post variables with PHP
December 16, 2022
The code below will allow you to access all submitted fields with $email and $name (for example) instead of needing to use $_POST[“email”] and $_POST[“name”] etc.
The Code
1
2
3
4
5
6
<?php
//use $email and $name (for example) instead of $_POST["email"] and $_POST["name"]