Transfer post information to next page
Posted on 2006-06-07
There is probably a simple adjustment I need to make to resolve my problem....
I recently set up php 4.4.2 on my home IIS server. I'm able to call php pages. The problem I run into is when I set up a simple form on a regular htm page and try to pass that info to the next php page. The info simply does not carry over.
I'm basing this on some very basic sample pages:
<form action="bad_words.php" method=post>
My name is:
<br> <input type="text" name="YourName">
<p> My favorite dirty word is:
<br> <input type="text" name="FavoriteWord">
<input type="submit" name="submit" value="Enter My Data!">
and the "bad_words.php" file/page:
<body bgcolor="#FFFFFF" text="#000000">
Hi <?php print $YourName; ?>
You like the word <b> <?php print $FavoriteWord; ?> !?! </b>
<p>You oughta be ashamed of yourself!
I'm wondering if I missed something in the code or perhaps it's some php.ini setting I missed....
I'm very new to PHP, and am trying to set this server up to start exploring PHP further.