Professional Web Applications Themes

Passing Variables in a URL - PHP Development

I know nothing about php, but I am getting a quick lesson. I have been adviced to pass variable, or at least their values like this http://www.domain.com/webpage.php?variable1=Tom?variable2=28 It works well enoguh for my purposes, but the only problem with this is that I need some pages to be indexed by Google, and Google warns against using the ?. I have read somewhere else that I can take my refering url above and change it to http://www.domain.com/webpage/Tom/28 Unfrtunately the article I read did not say how to get the values of "Tom" and "28" out of the refering url. Does anyone ...

  1. #1

    Default Passing Variables in a URL

    I know nothing about php, but I am getting a quick lesson.

    I have been adviced to pass variable, or at least their values like
    this

    http://www.domain.com/webpage.php?variable1=Tom?variable2=28

    It works well enoguh for my purposes, but the only problem with this
    is that I need some pages to be indexed by Google, and Google warns
    against using the ?.

    I have read somewhere else that I can take my refering url above and
    change it to

    http://www.domain.com/webpage/Tom/28

    Unfrtunately the article I read did not say how to get the values of
    "Tom" and "28" out of the refering url.

    Does anyone know how to do this?

    Thanks
    Best regards,

    Al
    http://www.affordablefloridainsurance.com
    http://www.americanbestmortgages.com
    AF Guest

  2. #2

    Default Re: Passing Variables in a URL

    AF wrote:
     


    OK - but be aware that Google indexes many pages like that. For example:

    http://tinyurl.com/cjuda

     


    http://httpd.apache.org/docs/mod/mod_rewrite.html

    Or Google for mod rewrite tutorials - (it can be quite complex though,
    and may be overkill for what you need)


    Tony Guest

  3. #3

    Default Re: Passing Variables in a URL

    On Tue, 21 Jun 2005 21:11:22 GMT, Tony <net> wrote:

    snip 
    snip

    Thanks for your post.

    Interesting that Google shows sites with the ?. In fact I did another
    different Google search on "mortgages Florida", and I found the 11th
    entry used the ?.

    What gives with Google? Their site clearly says not to use the ?.
    Doesn't look like it hurt the sites in my mortgage search.

    Again thanks for your post.
    Best regards,

    Al
    http://www.affordablefloridainsurance.com
    http://www.americanbestmortgages.com
    AF Guest

Similar Threads

  1. Passing Variables
    By LegeDoos in forum Macromedia Flash Data Integration
    Replies: 16
    Last Post: July 1st, 08:25 PM
  2. Passing variables from one swf to another
    By chintuChamp in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: October 20th, 02:48 PM
  3. Passing ASP Variables
    By Darren Woodbrey in forum ASP Database
    Replies: 2
    Last Post: April 19th, 04:49 AM
  4. Passing Variables from swf to swf
    By vin-E in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: January 19th, 09:36 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139