hi,
it there anything special with php code in tables.
Look at the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Participant Search Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Quanta Plus">
</head>
<body bgcolor="darkBlue" text="white" link="red" alink="yellow" vlink="lightGray">
<table width="100%" cellspacing=0 border=0 cellpadding=0 align="center" bgcolor="blue">
<tr align="center " valign="center" bgcolor="white">
<td><?php
$name = $HTTP_POST_VARS['user'];
$users = "registered_users.txt";
if(($reg = file($users, "r") == FALSE)
{
print("<h2>Error opening $users, probably not found</h2>"
}else{
$i = 0;
foreach($reg as $user)
{
$i++;
if("$name\n" == $user)
{
print("<h1>found $name</h1>"
print("<br><h3>$reg[$i]</h3>"
$i++;
print("<br><h3>$reg[$i]</h3>"
}
}
}
?></td>
</tr>
</table>
</html>
outputs the following by viewing source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Participant Search Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Quanta Plus">
</head>
<body bgcolor="darkBlue" text="white" link="red" alink="yellow" vlink="lightGray">
<table width="100%" cellspacing=0 border=0 cellpadding=0 align="center" bgcolor="blue">
<tr align="center " valign="center" bgcolor="white">
<td><h1>found skottieb@hotmail.com</h1><br><h3>scott
</h3><br><h3>unpaid
</h3></td>
</tr>
</table>
</html>
The output look legitimate to me
What has gone wrong here and how should I go
about fixing it ??
Tanhx all
skottieb
it there anything special with php code in tables.
Look at the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Participant Search Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Quanta Plus">
</head>
<body bgcolor="darkBlue" text="white" link="red" alink="yellow" vlink="lightGray">
<table width="100%" cellspacing=0 border=0 cellpadding=0 align="center" bgcolor="blue">
<tr align="center " valign="center" bgcolor="white">
<td><?php
$name = $HTTP_POST_VARS['user'];
$users = "registered_users.txt";
if(($reg = file($users, "r") == FALSE)
{
print("<h2>Error opening $users, probably not found</h2>"
}else{
$i = 0;
foreach($reg as $user)
{
$i++;
if("$name\n" == $user)
{
print("<h1>found $name</h1>"
print("<br><h3>$reg[$i]</h3>"
$i++;
print("<br><h3>$reg[$i]</h3>"
}
}
}
?></td>
</tr>
</table>
</html>
outputs the following by viewing source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Participant Search Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Quanta Plus">
</head>
<body bgcolor="darkBlue" text="white" link="red" alink="yellow" vlink="lightGray">
<table width="100%" cellspacing=0 border=0 cellpadding=0 align="center" bgcolor="blue">
<tr align="center " valign="center" bgcolor="white">
<td><h1>found skottieb@hotmail.com</h1><br><h3>scott
</h3><br><h3>unpaid
</h3></td>
</tr>
</table>
</html>
The output look legitimate to me
What has gone wrong here and how should I go
about fixing it ??
Tanhx all
skottieb