<form name = "infoDominio" action="<?php echo htmlentities('ip_connect.php');?>"method="get">
<div class="form-group">
<div class="param2">
<label class="col-sm-4 control-label">Device Ip:</label>
<div class="col-xs-2">
<input type="text" class="form-control" name="get_url_1" value="192"/></div>
<div class="col-xs-2">
<input type="text" class="form-control" name="get_url_2" value="168"/></div>
<div class="col-xs-2">
<input type="text" class="form-control" name="get_url_3" value="27"/></div>
<div class="col-xs-2">
<input type="text" class="form-control" name="get_url_4" value="123"/></div>
</div>
<div class="param1">
<div class="btn-group btn-group-justified">
<div class="col-sm-6">
<input name="infoDominio" type="submit" class="btn btn-primary btn-block" value="Connect Device"></div>
</div>
</div>
</div>
</div>
</form>
设备IP和连接设备的格式相同。现在我的问题是我的按钮有另一种形式。当我按下此按钮时,我从表格infoDominio四块IP值中获取值。
<form name="get_card" action="<?php echo htmlentities('get_device_card.php');?>" method="get">
<input name="infoDominio" type="submit" class="btn btn-primary btn-block btn-sm" value="Get Device Card">
</form>