Jump to content

Processing $_GET variables


Archimedees

Recommended Posts

 

in first.php $arServers is an array containing a list of Server names.

Now, using a form I want to pass the server names to a file,  second.php using form submit .

how do I include name="server" in following echo statement so that I can get the server names in second.php? Thanks.

 

foreach($arServers as $key => $value)

echo "  <td><pre>--".$value["name"]."--</pre></td>\n";

 

 

Second.php

 

if (isset($_GET["name"]))

    {

    $strServer = $_GET["name"]; 

    }

    else

    {

      die();

    }//end of (isset($_GET["name"]);

Link to comment
https://forums.phpfreaks.com/topic/75185-processing-_get-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.