include() is completely equivalent to pasting the contents of the file at that point in the code. The “file A” / “file B” output has nothing to do with having separate files. This is your actual code:
<?php echo "file A /n"; ?>
<?php if (isset($_POST['Submit'])){
echo "I pressed A /n";
}?>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
<input type="Submit" name="Submit" value="A"/></form>
<?php echo "file B /n"; ?>
<?php if (isset($_POST['Submit1'])){
echo "I pressed B /n";
}?>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
<input type="Submit" name="Submit1" value="B"/></form>
Also, the escape character is a backslash (\) not forward slash (/).
is the escape sequence for a newline.
Thank you for your answer, but i use include(); because i want to put them into the different places … And when i press for example A button i want to include B file content, and if i press B i want to include A file content.