Hello PHP gurus,
I'm having a problem getting both my form variables and session variables to pass to the next page. In fact they will not pass at all. I've done some searching on my problem, and can't seem to come up with anything.
the first page, cgitest.php, is a form. when the submit button is pressed, we go to cgitest2.php, yet no variables are passed. cgitest2 just displays: "variables not passed"
cgitest.php
<?php
session_start();
session_register('valid user');
$vartest = "ugly";
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<form action='cgitest2.php' method=post>
<table>
<tr>
<td>Input1:<input type='input1' size=30></td></tr>
<tr><td>Input2:<input type='input2' size=30></td></tr>
<tr><td><input type='submit' value='Submit'></tr></td>
</table>
cgitest2.php
<?php
session_start();
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if (!$input1 && !$input2)
echo "variables not passed";
echo $input1."<br>";
echo $input2."<br>";
echo $vartest;
?>
</body>
</html>
I can supply the contents of my phpinfo page if neccessary. thanks