A page of five links to the HREF is the same address, but click on different links to jump to the target page after the display of different content, how to handle

Source: Internet
Author: User
A page of five links to the HREF is the same address, but click on different links to jump to the target page after the display of different content
Ask Everyone
To make a music website, suppose there is a page with a main page that has a detailed content of the song detail.html
There are 10 songs on the main page, and the href of a 10 song is the same address detail.html
But judging the different links in the past, display different content on the detail.html (that is, the information that displays the corresponding song)
If every song is a separate page, there are too many pages.
Do not know how to achieve
Thank you!
------to solve the idea----------------------
Add an ID parameter
Song details
Song details
Song details
Song details
Song details

Then detail.php
$id = $_get[' id '];
Switch ($id) {
Case 1:
Echo ' song 1 Details ';
Break
Case 2:
Echo ' song 2 Details ';
Break
Case 3:
Echo ' song 3 Details ';
Break
Case 4:
Echo ' song 4 Details ';
Break
Case 5:
Echo ' song 5 details ';
Break
}
?>
------to solve the idea----------------------
The data of different music according to the parameter value
------to solve the idea----------------------
According to the link, pass different parameters, and parse different data according to the parameters to return to the HTML page.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.