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
lord
Forum Newbie
Posts: 5 Joined: Sun Nov 07, 2010 12:30 pm
Post
by lord » Fri Dec 03, 2010 12:33 pm
Code: Select all
$username = $_POST["username"];
$useremail = $_POST["useremail"];
$test_string = "billy";
echo "Welcome back, $username"; //displays Welcome back,
echo "Welcome back, $test_string"; //displays Welcome back, billy
Anyone help me as to why my variables from POST are not being displayed?
Thank you very much.
s992
Forum Contributor
Posts: 124 Joined: Wed Oct 27, 2010 3:06 pm
Post
by s992 » Fri Dec 03, 2010 12:55 pm
Post the code for the form that you are getting POST data from.
zaster79
Forum Newbie
Posts: 7 Joined: Tue Nov 16, 2010 9:37 am
Post
by zaster79 » Fri Dec 03, 2010 1:00 pm
Shouldn't that be ...
Code: Select all
echo "Welcome back, " . $username;
Celauran
Moderator
Posts: 6427 Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada
Post
by Celauran » Fri Dec 03, 2010 1:54 pm
zaster79 wrote:
Shouldn't that be ...
Code: Select all
echo "Welcome back, " . $username;
Both will work fine, as will
OP, you haven't given us enough to work with.