Joined: Tue Mar 27, 2007 10:55 pm Posts: 1573 Location: Earth Has thanked: 10 time Have thanks: 16 time
Jayne Carreen wrote:
Hi, How do I take information from a session and add it to a database? I want to take the persons username of the person submitting a the form and add it to a database.
use session variable .
Code:
if(isset($_SESSION['username'])) { // code here to take value from $_SESSION['username'] } else { echo " User Not Logged In " ; }
_________________ Currenlty programming with : java , html , php , and javascript .
Users browsing this forum: No registered users and 1 guest
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