PHP Newbie Nees Help !!

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
paulw
Forum Newbie
Posts: 2
Joined: Thu Oct 31, 2002 10:24 am

PHP Newbie Nees Help !!

Post 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. :?: :?:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

paulw
Forum Newbie
Posts: 2
Joined: Thu Oct 31, 2002 10:24 am

Post by paulw »

Thanks, sorted now!!!!!!
Post Reply