Hello
My project is based the RDB1868Cmsis2_uip webserver sample. Hardware is OM130085.
When defining cgi functions in my html page, the page will be created faulty by the webserver
This happens, even if the function doesn´t exist on the the controller,
Let´s say:
I define an input control with "!% name" as value, in order to be updated by the controller.
<input name="Text1" type="text" value="%! name"/></form>
</p>
<script>
function myFunction() {
a.s.o
After starting the webserver and loading that page the input control looks like this:
If i than analyze the html page (with F12 inside IE) I can see that the page have been sent faulty by the webserver:
<p><input name="Text1" type="text" value=" </p>
I am pretty sure, that I didn´t change anything related of the original code.
Does anybody have the same problem or any idea how to solve?
Thanks in advance.
br Ron
I found the cause myself.
Just in case someone facing the same problem:
For a script end we are looking for a new line in the following function:
static void
next_scriptstate(struct httpd_state *s)
{
char *p;
p = strchr(s->scriptptr, ISO_nl) + 1;
That´s why in case of an input box we have to write the html code like this and it´ll work!
<form method="post">
<input name="Text1" type="text" value="
%! shuttlespeed
"/></form>
br Ron