Jump to content

Recommended Posts

[!--quoteo(post=379314:date=Jun 2 2006, 11:12 PM:name=jlove)--][div class=\'quotetop\']QUOTE(jlove @ Jun 2 2006, 11:12 PM) [snapback]379314[/snapback][/div][div class=\'quotemain\'][!--quotec--]
This is a simple question but it puzzles me..

If it pass a variable without the variable name ike this :
[code]page.php?hello[/code]

How do I catch tat in the PHP code? I've tried $_REQUEST[''] but that doesn't seem to work...
[/quote]
It's not a variable without name, it's a variable without value.
try to echo all $_GET values, or simply var_dump($_GET)
to see what I mean
Your best of looking into mod_rewrite instead. Its much easier.

What mod_rewrite can do is change the following url:
mysite.com/page.php?var1=hello&var2=world

into something like this:
mysite.com/page/hello/world

a friendly URL
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.