Hallo!
Ich habe ein Frage zu action in Formularen.
Ich habe einen HTML-Code, dort ist in action keine Adresse, an die die Formulardaten gesendet werden, sondern ein "Code-wort", das im http-protocoll ausgewertet wird.
Könnte mir jemand erklären, wie das funktioniert?
Wenn ich ähnliches mache, dann denkt der Browser es ist ein File und wartet die ganze Zeit darauf.
Hier ist der Code:
<form action="setLED.xwscmd" method="get"><b>Hex Value</b>
<input type="text" size="1" name="value"><p>
<input type="submit" value="Submit"><br></form>
Es wäre sehr nett, wenn jemand mir klarmachen könnte, was hierbei gemacht wird(in action)
Vielen, vielen Dank!!
Hier der ganze Code, falls gebraucht:
<html>
<head>
<title>
ML403 Web Server Reference Design, (C) 2006 Xilinx, Inc.
</title>
<style type="text/css">
<!--
BODY
{
color:#000000;
font-family:sans-serif;
}
--!>
</style>
</head>
<body bgcolor = "#f0f0f5" text="#000000" link="#585858" vlink="#828282">
<img src="logoV2005.gif">
<center>
<b><font size=+3>PowerPC Web Server on ML403</font></b>
</center>
<center>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr valign=center align=left><td>Welcome to the Xilinx EDK Web Server demonstration, running on the ML403
Virtex-4 FX FPGA demonstration platform! This design is a minimalist web server implementation using the XMK
real-time operating system, with the lwIP TCP/IP stack.<p /><p />
All of the documentation for the PowerPC version of this reference design is included right here on the
web server! Click here to download <a href="xapp434.pdf">XAPP434</a>!.<p>
</td>
</tr>
<tr valign=center align=left><td>Also, check out the following demos:<p></td></tr>
<tr valign=center align=left><td><b>4-bit LED Display:</b><p>
Type in a hex value then click Submit to see it displayed as a 4-bit binary value on LED1 - LED4 (DS15, DS4, DS5, and DS6
on the board). Please note that the bit ordering is 0:3 - in other words, DS15 contains the most significant bit and DS6 contains
the least significant bit.<br /><p />
<form action="setLED.xwscmd" method="get"><b>Hex Value</b>
<input type="text" size="1" name="value"><p>
<input type="submit" value="Submit"><br></form></td></tr>
<tr valign=center align=left><td><b>Push Buttons:</b><p>
Push and hold the buttons 1 2 3 4 5 and see the value displayed as binary below when you re-load the page.
<p><b>Push Button Value: <iframe src="pushbuttonVal.xwscmd" width="100" height="50" align="left" scrolling="no">
<P>Your browser either does not support inline frames or has them disabled. This demo will not display properly.<P>
</iframe>
</td></tr></table>
</center>
</body>
</html>