Hay, I am newbie in php program. I have written the following script which
expect to satisfy the manipulating Submitted values in the other script.
It is not passing the submitted values to other script of different page.
Fav.html
----------
<html><head><title>Your Favourates</title></head>
<body>
<form action="fav.php" method="post">
<b>Please Enter Your Name</b>
<input type="text" size="45" name="username"><br>
<input type="submit" value="Submit This Page">
</form>
</body></html>
now in fav.php i have written following script.
Fav.php
-----------
<html><head><title>Your Submission</title></head>
<body>
<?php
echo ("Your Name is $username");
?>
</body></html>
My Current Result is
-----------------------
Your Name is (Blank Display)
Why fav.html is not passing the value of $username to fav.php ?
Please help me....so as i can proceed further.
NEED HELP IN PHP PROGRAM FOR MANIPULATING SUBMITTED VALUES
Moderator: General Moderators
- Pointybeard
- Forum Commoner
- Posts: 71
- Joined: Wed Sep 03, 2003 7:23 pm
- Location: Brisbane, AUS
- Contact:
Try:
Code: Select all
echo ("Your Name is " . $_POST[username]);- Pointybeard
- Forum Commoner
- Posts: 71
- Joined: Wed Sep 03, 2003 7:23 pm
- Location: Brisbane, AUS
- Contact:
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- Pointybeard
- Forum Commoner
- Posts: 71
- Joined: Wed Sep 03, 2003 7:23 pm
- Location: Brisbane, AUS
- Contact: