idaachi Posted November 2, 2007 Share Posted November 2, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.