Thank you for your help but I want to learn this too....

Here is the code from the HTML GET
<a href="move.pl?direction=NW&amp;cx=5&amp;cy=10&amp;player=Lou;">North
West</a>

And here I think is the CGI code

$input=$ENV{QUERY_STRING};
    @pairs = split(/&/, $input);
         foreach $pair (@pairs)
         {
         ($name, $value)=split(/=/,$pair);
         $form{$name}= $value;
         }
    $direction=$form(direction);
    $cx=$form(cx);
    $cy=$form(cy);
    $player=$form(player);

This should break it down so
    $direction=NW
    $cx=5
    $cy=10
    $player=Lou



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to