[HELP] Just a little question about PHP/DB's
Posted: Sat Jul 24, 2010 2:08 pm
Hello.
I seem to be having a problem with Php. I'm fairly new to it, but have set myself a task to code a fully functional Php Website. So far I have made a Log In page that works and a Registration page that works.
Now i'm trying to create a Contact Us page that works.
I want it to be like
<?php echo "$name" ?>
<?php echo "$username" ?>
Blah blah blah. So that it appears like
"Name: Andy ********"
"Username: Andy"
"Email: Andy@example.com"
"Subject: [drop down menu]"
ect.
Anyway. Is there a way I've got it to work with "Username: "$username"" but I can't get it to detect the session and retrive the session data from the Database for Name or Email.
If anyone could help me I would be greatly apprectiated.
Thanks,
"$username"
I seem to be having a problem with Php. I'm fairly new to it, but have set myself a task to code a fully functional Php Website. So far I have made a Log In page that works and a Registration page that works.
Now i'm trying to create a Contact Us page that works.
I want it to be like
<?php echo "$name" ?>
<?php echo "$username" ?>
Blah blah blah. So that it appears like
"Name: Andy ********"
"Username: Andy"
"Email: Andy@example.com"
"Subject: [drop down menu]"
ect.
Anyway. Is there a way I've got it to work with "Username: "$username"" but I can't get it to detect the session and retrive the session data from the Database for Name or Email.
If anyone could help me I would be greatly apprectiated.
Thanks,
"$username"