PHP URL's (2 posts)

  1. lxplicit
    Posted 11 years ago #

    I hope this makes sense

    Where do I place the coding so I can have URL's like... http://mysite.com/wordpress/index.php?action=links on WordPress

    here's an example: http://so-you.net

  2. Kafkaesqui

    Posted 11 years ago #

    You can test (and act upon) a GET query using something like:

    if(isset($_GET['action'])) {
    // Do something, like assign value to a variable
    $action = $_GET['action']
    // Then maybe display a message
    echo "Looking for some $action?";

    The code can go just about anywhere -- inserted in your templates, written into a plugin, whatever. The question is, what do you want to do with them?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.