Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - HTML form with SSI commands: (2 Items)
   
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>
------------------------------------------------------------------------------------------------------
Re: HTML form with SSI commands  
Has anyone ever figured this out? I am having the same issues. How do I set/get form values with SSI and qnxvar?