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
//use $email and $name (for example) instead of $_POST["email"] and $_POST["name"]
extract($_POST);
This entry was posted in
Code Snippets
and tagged
php
by
justin saad
.
Author:
justin saad
Justin Saad is first and foremost a husband and a father of four. He is also a web developer and designer who has been making websites for over twenty years. His company is called The Motech Network and his website is ClevelandWebDeveloper.com. In addition to building websites, Justin makes WordPress plugins and likes writing tutorials to help others learn about various aspects of web development.
Leave a Reply