Results 1 to 3 of 3

Thread: url address techniques

  1. #1
    Join Date
    Sep 2007
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default url address techniques

    what is it called when creating a link like this
    mysite.com/index.php?=mystuff

    what is that technique called?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Within PHP, the most common use of that technique, it's called a GET variable. It's available in the $_GET[] array, under $_GET['namehere'], where ?namehere=value.

    This "get" method is an alternative for forms (method="get") rather than the usual "post" method. It can be generated manually, or through a form. POST, on the other hand, is usually only done with a form (other ways exist, but they are difficult to achieve).

    (Note: "GET" is usually capitalized, for some strange reason.)

    These values would also be available with another server side language (CGI, ASP, etc), or javascript, but PHP has this setup as a default, so it's easy.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •