How to place two forms on the same page?

inassemaM

New Member
I want to place both register and login form on the same page.
They both starts with: \[code\]if (!empty($_POST)) ... \[/code\]so, I need something like:\[code\]if (!empty($_POST_01))... // regForm and if (!empty($_POST_02))... //loginForm\[/code\]Also how to prevent executing first form if the second is busy, and vice versa (user clicks on both)
My idea is to create a simple variable on starting process, for example \[code\]$x = 1\[/code\] and at the end of process \[code\]$x = 0\[/code\], so: \[code\]if ((!empty($_POST_01)) And $x = 0)...\[/code\]Probably, there is a better way.
 
Back
Top