1 Adding interface <B><% $iface %></B> for <B><% $host %></B>
4 <FORM NAME="nms-add_iface" ACTION="<% popurl(1) %>process/nms-add_iface.html" METHOD=POST>
5 <INPUT TYPE="HIDDEN" name="iface" value="<%$iface%>">
6 <INPUT TYPE="HIDDEN" name="host" value="<%$host%>">
8 <% include('/elements/input-text.html',
9 'field' => 'serviceid',
13 <INPUT TYPE="submit" NAME="submit" ID="submit_nms-add_iface" VALUE="Add Interface">
18 # XXX: access rights, disable/enable submit button, something's wrong with style
20 my $host = $cgi->param('host');
21 die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/;
23 my $iface = $cgi->param('iface');
24 die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;