Abhishek Ashtekar
|
HTML form with SSI commands
|
Abhishek Ashtekar
01/25/2011 4:27 AM
post82610
|
HTML form with SSI commands
Hello,
Using the slinger, I would like to write data to data server (ds) that is entered
into the HTML form field and submitted.
However I cannot understand, how can one manipulate the string value " data" so that it takes the value entered in the
form and sent to the dataserver
(<!--#qnxvar write="var_name "data"" -->)
Normal qnxvar write works well and the variable change in the webserver is reflected on the html page.
However problem is with sending in value entered in the form.
Thanks,
Abhi
-----------------------------------------------------------------------------------------------------
Here is my HTML form code :
<META HTTP-EQUIV="" CONTENT="2;URL=index.shtml">
<html>
<head>
<title>AT91SAM9G20</title>
</head>
<body>
<tr><td valign="top"></td>
<td valign="top"><h2><i><B>Status</B></i></h2></td></tr>
<!-- Start magic -->
<P>
<!-- Show the Current Value Set -->
<!--#qnxvar format="<P>Variable Value Set = %s" -->
<!--#qnxvar read="ABHI 128" -->
<P>
<!-- End magic -->
<form name="input" action="index.shtml" method="get">
Set Variable: <input type="text" name="ABHI" <!--#qnxvar format="value="%s"" -->
<!--#qnxvar write="ABHI "%s"" -->
<input type="submit" value="Submit" />
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------
|
|
|