It can be a lot, but I'm looking for a way to detect attributes in some of the form input fields.
For instance:
<input type="text" name="fieldone" id="fieldone" value="me@me.com" />
I can simply use the php foreach loop to get the key information => value.
<?php
$querystring = "";
if ($_POST){ $kv = array();
foreach ($_POST as $key => $value){ $querystring .= "$key=$value<br>"; }
}
?>
And it helps with mediocre debugging reasons.
However, this only defines the name and value of the form field. How to define the id attribute or any custom attributes that I can add.
Is there a way to detect / display the attributes of POST variables? Or does php stop at name / value?
source
share