Jump to content

Recommended Posts

It's not check box's. It's like if you click a link it adds it to the url var and keeps it until you end the game (whihc is what this is for.) I need a way to force link colors to change during one game session, so I decided to store the used options in the url and call them from there and add them each time you visit a page.

[a href=\"http://www.infected-designs.com/jeopardy/\" target=\"_blank\"]http://www.infected-designs.com/jeopardy/[/a]

it's for that, you'll understand when you look at one of the boards.

edit:

here's the source if you need it...
[a href=\"http://www.infected-designs.com/jeopardy/source/\" target=\"_blank\"]http://www.infected-designs.com/jeopardy/source/[/a]
Yes you can place an array within an array in a ur. Something like this:
[code]<?php

if(isset($_GET['say']))
{
    echo '<pre>' . print_r($_GET['say'], true) . '</pre>';
}

?>
<a href="?say['hello']=hello&say['world']=world">Set the array in the url!</a>[/code]
[!--quoteo(post=372387:date=May 8 2006, 03:47 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ May 8 2006, 03:47 PM) [snapback]372387[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Yes you can place an array within an array in a ur. Something like this:
[code]<?php

if(isset($_GET['say']))
{
    echo '<pre>' . print_r($_GET['say'], true) . '</pre>';
}

?>
<a href="?say['hello']=hello&say['world']=world">Set the array in the url!</a>[/code]
[/quote]
I'm confused. Could you please explain more?
Basically say['hello'] is an array

say is the primary array ($_GET['say']) to get the bits in the [] after say you use $_GET['say']['hello'];

You are just setting an array within the url.

The print_r function in the code supplied shows the contents of the $_GET['say'] array.

I haveing arrays within a URL isn't most pleasent thing to see as can become confusing.
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.