Jump to content

passing form variables


idaachi

passing form variables using submit  

  1. 1. passing form variables using submit

    • form variables 1
      0
    • form variables 2
      0


Recommended Posts

How do I include name=""  in following echo statement,  echo "  <td><pre>--".$value["name"]."--</pre</td>\n";

so that I can get these name strings as,  $server = $_request["name"]; in the ActiveServer.php file???

Thanks.

 

 

 

 

 

 

 

 

<html>

<head>

<title>Pass form variables</title>

</head>

<body>

<form name="urllist" action="ActiveServer.php" method="Get">

<table border=1>

  <tr>

    <th></th>

    <th></th>

    <th>Server</th

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

 

  {

    echo "<tr>\n";

    echo "  <td></td>\n";

    echo "  <td><input type=\"checkbox\" name=\"active_".$key."\" value=\"active\"";

    if ($value["active"]==true)

    {

      echo "checked";

    }

    echo "></td>\n";

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

    echo "</tr>\n";

  }

 

?>

 

</table>

<input type="submit" name="submit" value="submit">

</form>

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/75766-passing-form-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.