Hi,i have following code:
if (!isset($_POST['submit']))
{
<form action="" method="post">
<input type="submit" name="submit" value="Go"></input>
</form>
}
else
{
if (!isset($_POST['submittwo']))
{
<form action="" method="post">
<input type="submit" name="submittwo" value="Go"></input>
</form>
}
else
{
}
}
As you can see first block of code it's ordinary form which submit to itself,and in else there is again same form.If i would put this
<
form action="bla.php" name="submittwo" value="Go"> in second block it is working,but i want to make it work without using external file same as first form it is.I know that can be done since i saw some scripts like phplitesql which are entirely coded in single file,and they have tons of forms in it.But code is a bit toocomplex for me to understood it so it would be good if someone know how to do that.