Please help me to solv this prob in php
By elabuwa
@elabuwa (96)
Sri Lanka
June 16, 2007 8:08am CST
Think there is a table with username, firstname,subject, message columns. on the first page it should display firstname and subject only. subject column is hyperlinked. once u click on a subject, the relevent other details should display. what I need to know is how to pass the subject to the search php code when user clicks on the subject. Anybody plz help me in this.
1 person likes this
1 response
@spiderman05 (851)
• Canada
17 Jun 07
I wrote a long reply and unfortunately I lost it. I am rewriting a short answer again. When you generate your first page, you should set the parameters of your search script properly in the subject link. Though, this will cost you 2 calls to the php script, one to generate the first page and another call to generate the second page.
If you want to do just one call, then retrieve all the data on your first call (user, subject, message...), then use a javascript function to generate the second page.
I hope that this answers your question.