how to read message on the next page by clicking on the sub.

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

how to read message on the next page by clicking on the sub.

Post by adsegzy »

am designing a social website where friends can send message to one another. i have designed the indox page named inbox.php where list of all messages will be displayed. the inbox table will display the SENDER, SUBJECT and DATE. the subject the an hyperlink that will direct the member to read the message. I also design another page named readmsg.phpwhere the message which subject is being clicked in the inbox.php will be read, this page will show the SENDER, DATE SENT, SUBJECT & MESSAGE. the code for the subject is as below

Code: Select all

<a href="readmsg.php?id=$id">$subject</a>
The problem is that whenever the subject is being clicked in the inbox.php, i will be directed to readmsg.php but the field of SENDER, DATE SENT, SUBJECT & MESSAGE will be blank it won't show the info. i tried to create and pass it to SESSION[read] but its now working because i already have a SESSION[member]. please what do I do?
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

Re: how to read message on the next page by clicking on the sub.

Post by thinsoldier »

on the destination page use the id from the url in $_GET to re-query the database and display the info on the page
Warning: I have no idea what I'm talking about.
Post Reply