Can php add variables to the link address? I used wordpress as a blog-like website (website a.com/B) & nbsp; in addition, there is a home page a (a.com) home page a with two links to select the user region (such as Shanghai & nbsp; Beijing) & nbsp; & nb php can I add a variable to the link address?
I use wordpress as a blog-like website (a.com/B) and I have my own homepage a (a.com)
There are two links in Homepage a to select the user region (such as Shanghai and Beijing), but the two links actually point to the same website a.com/B (the homepage of wordpress blog) I modified the database and used the following code to display different article lists through different links.
Echo "Beijing
Shanghai ";
My blog page is similar to the following layout
Introduction to Article Classification
Article 1
Article 2
...
Now, after selecting different addresses on the homepage, the corresponding article list will be displayed after you jump to the blog page (implemented by passing values through the above code)
But the problem is that once I click a message and then click the document category to display the article, it is not based on the address I selected at the beginning.
Because there is no such conduction value
In addition, I cannot write several message links that correspond to different address categories as on the homepage.
Is it possible to add a variable in the link address?
For example, the variable v is a number.
There is a jump link a.com/ B /? B = v
Write down the value of v.
V different jump to different web pages
If you have any other solutions, thank you. the website is facing this problem. could you please help? =
In fact, I don't know much about writing code. if you don't understand it, please ask me. thank you for sharing it:
------ Solution --------------------
Yes. Url? B =
------ Solution --------------------
Reference:
Quote: reference:
When you submit a message, you can set the parameter B = 2.
But the address is user-selected, not every time it is 2. sometimes it is 1 or 3. what should I do?
'>