Help - Search - Member List - Calendar
Full Version: Passing Variables in a URL
WorkTheWeb Forums > Webmaster Resources > PHP Help
Support our Sponsors!
AF
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

Tony
AF wrote:

QUOTE
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 ?.


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

http://tinyurl.com/cjuda


QUOTE
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?


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)

AF
On Tue, 21 Jun 2005 21:11:22 GMT, Tony <[Email Removed]> wrote:

snip
QUOTE

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

http://tinyurl.com/cjuda

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


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.