Page 1 of 1

PHP Newbie Nees Help !!

Posted: Thu Oct 31, 2002 10:24 am
by paulw
Hi people,

Whats wrong with my code? All I am trying to do is pass a variable between two pages: -

page 1 Form: -

<form action="page2.php" method="post">

My name is:
<br> <input type="text" name="YourName" value="">


<input type="submit" name="submit" value="Enter My Data!">
</form>

Page 2 Result:-

<p>
Hi <?php print $YourName; ?>
</p>


This looks correct to me bu nothing displays? All I get is "Hi"

Any ideas?

I set up apache to run on port 8080 as I use IIS for ASP work. Would this have any effect on the page?

Any help will be much appreciated.

Paul. :?: :?:

Posted: Thu Oct 31, 2002 10:27 am
by volka

Posted: Thu Oct 31, 2002 10:31 am
by paulw
Thanks, sorted now!!!!!!