I guess I would call it spaghetti-code; but it's much more then that.
In PHP projects, it's very common to see page logic split like:
Index.php:
<html><head>...</head><body><?php include("body.php"); ?></body></html>
Body.php:
switch ($page)
{
case: "default": include ("bodies/default.php"); break;
....
}
Default.php:
include("table_top.php");
print "<tr><td>";
print "Welcome to our site!";
$user = $_SESSION["user"];
if ($user)
{
include("get_user_info.php");
print "welcome " . $user_first_name;
}
print "</td></tr>";
include("table_bottom.php");
get_user_info.php:
$user = "root";
$pass = "1234";
include ("db_connect.php")
$sql = "SELECT user_first_name, user_last_name FROM users WHERE user_id = " $user;
$res = mysql_query($sql);
list($user_first_name, $user_last_name) = mysql_fetch_row($res);
It is easy for inexperienced develops to get caught up in this madness. Pretty soon they are repeating functionality, or attempting to change the markup but cant because it is all buried in all this mess. Also, the use of globals when applying this pattern can get very confusing and cause many untraceable bugs.
Most... learn very quickly; but it is a nasty design that you should always stay away with. Prefer MVC; or maybe just having a more consolidated library.