Level 6
Change the names of the other form.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
With 2 forms on a page, the old() method on a form value field is not form specific. So if you attempt to change the data in one form and validation fails, it will populate the same named field in a totally different form on the page.
So lets say you have 2 forms that both have a field called email. When you update form 2's email field, and the data does not validate, it will populate BOTH forms with the invalid email data.
Please or to participate in this conversation.