It seems that POSTing information from a form to another page only works intermittently. Sometimes it works and sometimes it doesn't. Here's some example code:
The intake page (posttest.ccs1):
The next page (posttest_results.ccs1):
Sometimes the values I entered show up, and sometimes they don't. Any clue?
The intake page (posttest.ccs1):
Code:
<html>
<head>
<title>Test of POST</title>
</head>
<body bgcolor='#000088'><form action='posttest_results.ccs1' method='POST'>
<center><table bgcolor=white border=1>
<tr>
<td><b>Variable #1:</b></td>
<td><input type=text name='var1'></td>
</tr>
<tr>
<td><b>Variable #2:</b></td>
<td><input type=text name='var2'></td>
</tr>
<tr>
<td><b>Variable #3:</b></td>
<td><input type=text name='var3'></td>
</tr>
<tr>
<td colspan=2 align=middle><input type=submit></td>
</tr>
</table></center></form>
</body>
</html>
The next page (posttest_results.ccs1):
Code:
<html>
<head>
<title></title>
</head>
<body>
<b>Variable #1: </b><?php echo $_POST['var1']; ?><br>
<b>Variable #2: </b><?php echo $_POST['var2']; ?><br>
<b>Variable #3: </b><?php echo $_POST['var3']; ?>
</body>
</html>
Sometimes the values I entered show up, and sometimes they don't. Any clue?