I got some code from a book. A real easy example that uses Forms. It is two php-files that send variables from one to the other.
It should work, but it doesn't. What can be wrong when it doesn't work to send variables, is there anything between apache and php that might have gone wrong during installation?
I'm adding the two files.
--------Baseballtest.php--------------
<head><title>Baseball</title></head>
<body bgcolor="#ffffff">
<Form action="Baseball.php" method="get">
<P>Root, root, root for the:<br>
<Select name="Team" size=2>
<option value="cubbies">Chicago Cubs (National League)
<option value="Pale Hose">Chicago White Sox (American League)
</select>
<p>
<input type="Submit" value="Skicka" name="submit">
</form>
</body>
And the other one
-----------Baseball.php----------------
<head><title>Baseball</title></head>
<body bgcolor="#ffffff">
<p>GO,
<?php print("$Team"); ?>
!
</body>
I really hope someone knows the answer to this.
/Magnus