Jump to content

Creating webpage dynamically in PHP


Jagand

Recommended Posts

I have a webpage that has hundreds of links. Clicking on any of these links should drive a customer to same destination page but the content that is loaded on destination page should differ based on the link that customer has clicked. For example, on main page, if user clicks A, destination page should redirect user to destination.php and then load data related to A by fetching it from MySQL. So, with B where data loaded is specific to B and so with C.

 

In order to do this, in the destination page, PHP should know if user clicked on A, B, C ... How can I code the program to detect which link the customer clicked? In Javascript, I can do this using onClick but in PHP, I am sure there must be a solution though such a solution might involve couple of data exchanges between server and client. Please help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.