I have written a code for sending data from webpage to controller. I am not a html guy and I have written using some templates. I have created a form and I wanted to send the baudrate value to controller.
<TABLE width=50%>
<TBODY>
<TR>
<TD width=80%>
<TABLE width=80%>
<TBODY>
<TD>
<FORM name="baudrate" action="baudrate.cgi" method="get">
<TABLE width="100%" border="1" cellpadding="2" cellspacing="2">
<TBODY>
<TR>
<TD align=center><FONT style="FONT-SIZE: 8pt" face=Arial> <B>Baud Rate:</B></FONT></TD>
<TD align=center height=25><FONT style="FONT-SIZE: 8pt" face=Arial> <!--#p0br--> bits/second</FONT></TD>
<TD><FONT style="FONT-SIZE: 8pt" face=Arial> <select size="1" name="br"><option value="230400">230400</option><option value="115200">115200</option><option value="57600">57600</option><option value="38400">38400</option><option value="19200">19200</option><option value="14400">14400</option><option value="9600">9600</option><option value="4800">4800</option><option value="2400">2400</option><option value="1200">1200</option><option value="600">600</option><option value="300">300</option><option value="110">110</option></select> bits/S<br></FONT></TD>
</TR>
<TR>
<TD></TD>
<TD align="center"><input name="" value="Apply" onclick="window.history.go(0); return false; "type="submit"></TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</TD>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
In the above code, On clicking the submit I wanted to send the br value to the controller by calling the baudrate.cgi function and I wanted to reload the page. If I give
<TD align="center"><input name="" value="Apply" onclick="window.history.go(0) "type="submit" ></TD>
Then the webpage is able to send to controller and the reload is also happening but it is only happening in microsoft edge browser and in other browsers it is giving error. If I use Then the webpage is not able to send the data to the controller but it is refreshing in all the browsers.
Is there any other way to achieve this ? Can anyone please help me?
Regards, Vibhu.