The most straightforward way is to utilize the $_POST
super global variable. For example, if the form had a field named post-text
, you could access the posted data at $_POST[ 'post-text' ]
. Of course, you’d want to sanitize it properly before using it.