LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2004, 04:52 AM   #1
mgrapr
LQ Newbie
 
Registered: Jan 2004
Location: AURANGABAD
Posts: 2

Rep: Reputation: 0
Question Need help in PHP PROGRAM


Hay, i am newbie in PHP Programming. Thick in the following problem...

I have written a script name fav.html from which i expect to pass a variable
value to other page script i.e., fav.php. But it is not passing any value to other script on different page.

Please see following script.
fav.html // simple script
----------
<html>
<head><title>Your Favourates</title></head>
<body>
<form action="fav.php" method="post">
<b>Enter Your Name</b>
<input type ="text" size ="45" name="username"><br>
<input type="submit" value="Submit this page">
</form>
</body></html>

Fav.php
----------
<html><head><title>Your Submission</title></head>
<body>
<?php
echo("Your Name is $username");
?>
</body></html>

My Current Result
------------------------

Your Name is (Displaying Blank)

Why fav.html is not passing the value of $username to fav.php
Please help me!..................
 
Old 02-28-2004, 05:04 AM   #2
saint
Member
 
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55

Rep: Reputation: 15
Please see http://in.php.net/manual/en/language...s.external.php . This has enough documentation. Do get a book on PHP 4 programming and read it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP chat program jilljack Programming 2 10-14-2005 06:46 AM
Help to run the PHP program I installed Gins Linux - General 7 09-09-2005 05:01 PM
How executing c program with php? payal_shah Programming 6 04-08-2005 11:44 PM
Is it possible to have PHP trigger a C program ? lostboy Programming 4 07-13-2003 12:20 PM
want to execute a php file in a c++ program Mr_ss Programming 1 10-10-2001 04:15 PM


All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration