This may be asking a lot, but I am looking for a way to detect the attributes in some of my form input fields.
For example:
<input type="text" name="fieldone" id="fieldone" value="[email protected]" />
I can simply use a php foreach loop to get the key => value information.
<?php
$querystring = "";
if ($_POST){ $kv = array();
foreach ($_POST as $key => $value){ $querystring .= "$key=$value<br>"; }
}
?>
And this helps with mediocre debugging reasons.
However, this only detects the name and value of the form field. How do I detect the "id" attribute, or any custom attributes I may add.
Is there a way to detect/display the attributes of POST variables? Or does php stop at the name/value?