Embarrasing:How can I get PHP variables from 1 page to anoth

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anders_blomback
Forum Newbie
Posts: 1
Joined: Fri Jun 07, 2002 12:52 pm
Location: Stockholm

Embarrasing:How can I get PHP variables from 1 page to anoth

Post by anders_blomback »

I have this simple form:

body bgcolor="#ffffff">
<form action="phptest.php" method="post" name="kunddata" target="_self">
<input type="text" name="fornamn" value="Anders" size="24" border="0">
<p></p>
<p></p>
<p><input type="submit" name="submitButtonName" border="0"></p>
</form>
<p></p>
</body>

When I try to get (after pressing submit) and echo the variable "Fornamn" it simply types <space>
What do I do wrong ???

This is my PHP sript
<?PHP echo ( $_POST['Fornamn'] ); ?> <p>
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

PHP variables are case sensitive.

Code: Select all

<?PHP echo ( $_POST&#1111;'fornamn'] ); ?> <p>
Post Reply