I want to get a password from an input form in a safe manner. Originally I was using $_POST[] but I would like a safer method that is reasonably simple and effective.
GetElementById does not seem like a good solution for this but if you think otherwise can you please let me know as I'd like to use it elsewhere if it is.
HTML
<div class="form-group" >
<input type="password" name="password" class="form-control input-lg" placeholder="Password" required>
</div>