Hvordan virker en formular
Jeg vil bruge en formular skabelon fra Frontpage, men kan jeg tillade mig at ændre i den feks.<td>FAX</td>
<td><input type="text" size="35" maxlength="256" name="UserFAX"></td>
</tr>
til:
<td>KLUB</td>
<td><input type="text" size="35" maxlength="256" name="UserKLUB"></td>
</tr>
og hvordan virker formularen når den sendes og hvor sendes den?
<p><input type="submit" value="Submit Comments">
Her er koden fra formularen:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Tell us what you think about our web site</title>
</head>
<body bgcolor="#C0C0C0">
<p>
<!--webbot bot="PurpleText" preview="Feedback Form - Customize the form below to collect the information you need. By default, the form data is saved to a text file on the web server using the FrontPage Save Results component. Edit the Form Properties to change this behavior." -->
</p>
<hr>
<p>Tell us what you think about our web site, our products, our organization, or
anything else that comes to mind. We welcome all of your comments and
suggestions.</p>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="_private/feedback.txt" s-format="TEXT/TSV" s-label-fields="TRUE" s-builtin-fields="Date Time REMOTE_NAME REMOTE_USER HTTP_USER_AGENT" s-form-fields -->
<p><strong>What kind of comment would you like to send?</strong></p>
<dl>
<dd><input type="radio" name="MessageType" value="Complaint">Complaint
<input type="radio" name="MessageType" value="Problem">Problem
<input type="radio" checked name="MessageType" value="Suggestion">Suggestion
<input type="radio" name="MessageType" value="Praise">Praise</dd>
</dl>
<p><strong>Vælg hvilken DVD-boks du ønsker at købe - What about us do you want to comment on?</strong></p>
<dl>
<dd><select name="Subject" size="1">
<option selected>AVAC-2006 - kr. 150,00 ex. forsendelse</option>
<option>Öresundsspelen 2006 - kr. 125,00 ex. forsendelse</option>
<option>Senior DM 2005 - kr. 125,00 ex. forsendelse</option>
<option>(Andre)</option>
</select> Andre:
<input type="text" size="26" maxlength="256" name="SubjectOther"></dd>
</dl>
<p><strong>Enter your comments in the space provided below:</strong></p>
<dl>
<dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
</dl>
<p><strong>Tell us how to get in touch with you:</strong></p>
<dl>
<dd>
<table>
<tr>
<td>Name</td>
<td><input type="text" size="35" maxlength="256" name="Username"></td>
</tr>
<tr>
<td>E-mail</td>
<td><input type="text" size="35" maxlength="256" name="UserEmail"></td>
</tr>
<tr>
<td>Tel</td>
<td><input type="text" size="35" maxlength="256" name="UserTel"></td>
</tr>
<tr>
<td>FAX</td>
<td><input type="text" size="35" maxlength="256" name="UserFAX"></td>
</tr>
</table>
</dd>
</dl>
<dl>
<dd><input type="checkbox" name="ContactRequested" value="ContactRequested">
Ønsker nyhedsmail tilsendt</dd>
</dl>
<p><input type="submit" value="Submit Comments">
<input type="reset" value="Clear Form"></p>
</form>
<hr>
<h5>Author information goes here.<br>
Copyright © 2006 [Sportsvideo.dk]. All rights reserved.<br>
Revised: <!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y" -->.</h5>
</body>
</html>
