Page 1 of 1

Multi-part form submission

Posted: Mon Feb 27, 2006 8:32 am
by russia5
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)"'?>>

Posted: Mon Feb 27, 2006 8:45 am
by feyd
The action can be called by any page.

Superglobals are dependant on each page request, so it's hard to answer your question there without understanding what your definitions are.