#!/usr/bin/haserl
content-type: text/html
<% DNSRECORD_FILE=/root/dnsrecord-file %>
<html><body>
<h1>Sample Form</h1>
<form action="<% echo -n $SCRIPT_NAME %>" method="POST">
<% [ "$FORM_submit" == "修改" ] && echo -n "$FORM_dnsrecord" |tr -d "\r" >$DNSRECORD_FILE %>
<textarea name="dnsrecord" rows="20" cols="50">
<% cat $DNSRECORD_FILE %>
</textarea>
<br>
<input type=reset>
<input type=submit value='修改' name='submit'>
</form>
</html>
</body>
沒有留言:
張貼留言