|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
php link redirect/perform action
I am working a web site that has several text links at the top of the page. I want to populate a table on the page based on which link the user clicks. I am wondering if there is any way I can give the link a name and then use if(isset($_POST['linkname'])) then perform populating table else perform popluating the table based on the other link names that may have been clicked.
|
|
#2
|
||||
|
||||
|
When you do something like that (what isn't possible by the way without using forms) a new page has to be loaded. Remember that PHP is serverside, so you can never populate a table after the page has been loaded. Why do you want it like this and not just a normal link to another (dynamic) page?
Cheers,
__________________
Work to live, don't live to work |
|
#3
|
||||
|
||||
|
Spongy, I didn't get that crazykyle was saying he wasn't willing to reload the page. When the link is clicked, the page reloads and the table's populated with data based on the clicked link. To do this, crazykyle, you'd just take the POST value and use it to select from your database (or to get values based on the array key, if you're statically coding the values) and build the table using PHP.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#4
|
||||
|
||||
|
:$
You're right... Answered to quickly |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php link redirect/perform action |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|