En gang til: indsætte meddelelse på side
Jeg prøver en gang til med følgende spørgsmål!Jeg har en formular reserver_form.asp som indsætter reservationer i en database. Dette foregår via siden indsaet_reservation.asp, som giver meddelelsen "Lokalet er ledigt" hvis dette er tilfældet og modsat "Lokalet er reserveret". Denne meddelelse vil jeg gerne have indsat direkte på siden med formularen. Hvordan gør man det, jeg tror det er noget med include file, men jeg har ikke kunnet få det til at virke. Min formular ser sådan ud:
<html>
<head>
<title>Indsæt opgave</title>
</head>
<body bgcolor="#669999">
<p align="center"><font face="Verdana" color="#FFFFFF">Her kan du indsætte opgaver i skemaet.<br>
Vælg ugenummer, dag og fag.</font></p>
<p align="center"> </p>
<form method="POST" action="indsaet_reservation.asp" onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
<p align="center"> </p>
<div align="center">
<center>
<table border="0" width="80%" bgcolor="#FFFFFF">
<tr>
<td width="100%">
<table border="0" width="100%">
<tr>
<td width="100%" colspan="4">
<p align="center">
<%
response.write "<font face=verdana size=2>"
response.write "Denne uge er nr:" & DatePart("ww",date())
%>
</td>
</tr>
<tr>
<td width="100%" colspan="4" height="15">
</td>
</tr>
<tr>
<td width="26%">
<p align="right"><!--webbot bot="Validation" B-Value-Required="TRUE" --><select size="1" name="uge">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
<option>32</option>
<option>33</option>
<option>34</option>
<option>35</option>
<option>36</option>
<option>37</option>
<option>38</option>
<option>39</option>
<option>40</option>
<option>41</option>
<option>42</option>
<option>43</option>
<option>44</option>
<option>45</option>
<option>46</option>
<option>47</option>
<option>48</option>
<option>49</option>
<option>50</option>
<option>51</option>
<option>52</option>
</select></p>
</td>
<td width="38%">
<p align="center"><!--webbot bot="Validation" B-Value-Required="TRUE"
--><select size="1" name="dag">
<option>Mandag</option>
<option>Tirsdag</option>
<option>Onsdag</option>
<option>Torsdag</option>
<option>Fredag</option>
</select></p>
</td>
<td width="18%">
<p align="left"><!--webbot bot="Validation" B-Value-Required="TRUE" --><select size="1" name="lektion">
<option selected>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
</select></p>
</td>
<td width="18%">
<!--webbot bot="Validation" B-Value-Required="TRUE" -->
<select size="1" name="reservation">
<option selected>dataA</option>
<option>dataB</option>
<option>dataBib</option>
<option>fysik</option>
<option>kantine</option>
<option>vhs1</option>
<option>vhs2</option>
</select>
</td>
</tr>
<tr>
<td width="26%">
Initialer
</td>
<td width="38%">
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Minimum-Length="2"
I-Maximum-Length="10" -->
<input type="text" name="initialer" size="5" maxlength="10">
</td>
<td width="36%" colspan="2">
</td>
</tr>
<tr>
<td width="26%">
Klasse
</td>
<td width="38%">
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Minimum-Length="2"
I-Maximum-Length="3" -->
<input type="text" name="klasse" size="5" maxlength="3">
</td>
<td width="36%" colspan="2">
</td>
</tr>
</table>
<p align="center"> </p>
<p> </td>
</tr>
</table>
</center>
</div>
<p align="center"><input type="submit" value="Send" name="B1"><input type="reset" value="Nulstil" name="B2"></p>
<p align="center"><form name="tilbage"><input type="button" value="<--Tilbage" onClick="history.back();">
</form>
</body>
</html>