Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Write data to data server process using form: (1 Item)
   
Write data to data server process using form  
Hello, 

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. (<!--#qnxvar write="var_name "data"" -->)

Normal qnxvar write works well and the variable change in the webserver is reflected on the html page.

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>
------------------------------------------------------------------------------------------------------