i have a sign up page.
when user signup ,his data moves to database'table having 4 colomns.1 is of username,2 of password, 3 of email & last for title.
when he signsup,a page choice.html opens that offers to login now or later.
if the user login at that time ,he is moved to a title.html page at which there is a txtbox & txtarea.
he types an article in txtarea & title in txtbox.
i want that title to be saved in the database'table ,in same row of the user.means it shoudl save in the row of that user who is now saving it.
but for this i have to compare the username in the table with one who is now logged in at page signup.there are also php pages in btw two html pages.
so will any body tell me please that how can i use session here for this.
or if there is any other method for this so kindly share.
regards
bsse007 -3 Light Poster
Recommended Answers
Jump to Postregister a session variable username. Then use UPDATE tblename SET title=whatever WHERE username = '$_SESSION';
Jump to PostImages don't show up in a textarea, if that's what you're trying to do - unless you have a modified textarea, like a WYSIWYG editor in place.
As mentioned, session variables can only be kept "live" if they are passed through every page/file. session_start() must be placed in each …
All 8 Replies
KPheasey 0 Newbie Poster
bsse007 -3 Light Poster
bsse007 -3 Light Poster
KPheasey 0 Newbie Poster
bsse007 -3 Light Poster
Horacio91 0 Newbie Poster

diafol
Horacio91 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.