I have a file, with many parts of code.
Each part starts with <form> and ends with </form>.
Between each form, there is something like this: <input type='text' name='date' value='2010-01-01'><input type='text' name='username' value='test'>
I want to parse each part of the code with php and get the value of input username, where the value for input date is '2010-01-01'
Any solutions please?
example:
<form>
<input type='text' name='date' value='2010-01-01'>
<input type='text' name='username' value='test'> <!-- How can I get this value ('test')? -->
</form>
<form>
<input type='text' name='date' value='2010-01-02'>
<input type='text' name='username' value='test2'>
</form>
.
.
.
<form>and end with<form>. Ataomega forgot the ``` and I can't edit because there is a pending edit which needs to be approved first...