Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7883245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:28:56+00:00 2026-06-03T04:28:56+00:00

The site I manage uses php urls to show a detail.php dynamically for each

  • 0

The site I manage uses php urls to show a detail.php dynamically for each product (still new to php, please bear with me).

the currently look like this:

domain.com/detail.php?id=123

can I use a different attribute (not sure if that’s what it’s called) so I can have slightly more user friendly urls?

Like:

domain.com/detail.php?name=Product+Name

and if so… how? for the life of me I can’t figure it out or search for the right terms (probably just don’t know their correct names yet). I figured it would be simple as a %20 instead of the spaces, but as you all probably know, this doesn’t do it.

I have name set to varchar, and I have no idea if that makes a difference.

any help is appreciated, this isn’t an urgent thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:28:57+00:00Added an answer on June 3, 2026 at 4:28 am

    I’m really not sure where you’re having trouble. This very basic example works just fine for me:

    <?php
        if (isset($_GET["name"]))
            die("name = {$_GET["name"]}");    /* outputs "name = Product Name" */
    
        $row = "Product Name";
    ?><a href="test.php?name=<?php echo $row; ?>">Click here</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: Our site is built in PHP and uses MySQL databases. I already manage
A site I manage uses the my_twitter.php class simply to receive tweets from one
I'm currently writing a site which uses django-guardian to assign object-level permissions which are
I have an Asp.NET MVC site that I manage multiple instances of. Each instance
Situation We are currently developing a Sharepoint 2010 site that uses Infopath 2010 forms.
I currently have a site that uses the JQuery cycle plugin. The site uses
I just got a site to manage, but am not too sure about the
On my site I use require.js to manage my code, on the main page
How do you prefer to manage the contents of your site , XSLT ,
Right now we have AD/Exchange to manage all of our users logins/e-mail on-site at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.