Hello, I have a multi-part form and the PHP handler is on the same page. I also have a duplicate form (different language) in another file. When I submit one or the other, I get duplicate submissions to my MySQL table. I believe there to be one of three problems. a) each form could be submitting within itself, hence the form handler could be submitting as well as the form itself b. The form handler could be double submitting c. The action in the FORM tag below allows for either form handler to process it. Is it not true that the FORM action "?step=<?+($step+1) can be called only by a php program in the same file. Could it be that superglobal variables can be pulled in a different file with this action?
Code: Select all
<form action="?step=<?= ($step+1) ?>" method="post" enctype="multipart/form-data" name="form1"<?php if ($step < 3) echo ' onSubmit="return isValid(this)"'?>>
Multi-part form submission
Moderator: General Moderators