View unanswered posts | View active topics It is currently Sat Dec 20, 2014 9:18 am



Reply to topic  [ 2 posts ] 
 problem with php execution 
Author Message
Junior Member

Joined: Sun Oct 25, 2009 1:04 am
Posts: 14
Post problem with php execution
hello,

i am new to PHP programming.

I have created on html file & php file both on desktop as follow

welcome.html

<html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>

& welcome.php

<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>!

You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>


I run welcome.html & input name PRASHANT & age 42 & click on submit query, the result shown in browser as below

<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>!

You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>

same as php file.

Please help in solving problem.

Regards,

Prashant Kadam


Sun Oct 25, 2009 1:18 am
Report this post
Profile
Junior Member

Joined: Sun Feb 08, 2009 11:58 am
Posts: 7
Post 
Your code works fine. I can't see the problem in my browser.


Wed Nov 04, 2009 6:02 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.