I have a page with PHP and HTML.
The PHP section contains an input-type="password"
I want to put the value of the password fields inside a hidden-input on the HTML side of the page (in a form)...
<?php
INPUT PASSWORD
?>
<HTML>
<form with password inputs>
</HTML>
How can I do this? I cant put the password inside the form directly because of several reasons. It MUST stay in the php!
Thanks
UPDATE: I meant put the password value inside a password field in the form! I want to submit this with the rest of the values in that form, thats the reason... Is this also dangerous and not good?
UPDATE2:
I have a main form. after submit a php page opens up containing all data. I put these data inside hidden inputs on that page. This because the user has to verify all data is correct, and also chose a password! Now, the password input field is created with php, so I need to get that field submitted also, with the second 'approvalForm' containing all data!