I have an HTML input field, and I have every input field specified with some id, now how can I use this input field id to identify the field.
<input type='text' id='float' name='attributename' value='' maxlength='30'/>
It depends which method you use for transferring the data (specified by the
method attribute of the
<form method="POST"> <input type='text' id='float' name='attributename' value='' maxlength='30'/> <input type="submit" /> </form>
you can access the data in PHP via
$_POST['attributename'] when the form is submitted.
$_POST is an associative array that holds the data send via a POST request.
name of the input element is the important property, not the ID. The ID is not transferred to the server, it plays only a role in the DOM. Only the
name and the
value is send to the server. So if you probably want to set