so, i assume you mean you know how to capture the values of the various input fields in your form via a javascript function triggered by the submit button and show those values on screen with an alert (or sent to console.log. either). yes? if not, stop. don't read the rest until you confirm.
conceptually, what you'll do is send the captured values to your b4a app instead of to the alert or the log. with me? for that, you need to include the webvewextras library from add'l libraries. v1.42 is fine. you don't need webviewextras2. here's the link for general information about this library:
https://www.b4x.com/android/help/webviewextras.html
so, in your b4a app declare your webviewextras:
' i assume you already have delared your webview
' eg, dim webview1 as webview
Dim wvx As WebViewExtras
in your activity_create, initialize the wvx:
wvx.addJavascriptInterface(webview1, "B4A")
wvx.addWebChromeClient( webview1,"WEevent" )
the webviewextras help page will explain what those methods do.
now create this sub in your b4a module:
Sub fromWebview( s As String )
log("Got: " & s & " from my webview")
End Sub
this sub will receive the abovementioned captured values from your html page. forget about sqlite for the moment. let's see if you can read the values from the webview.
------------------------------------------------------------------------------------------------------------------------------------------------------
in your html doc, add this call to the function where you process the submit button and capture your values. for the purposes of the exercise, just gather them into a string which we'll call stringwithvalues:
var stringwithvalues = "name=" + name + "age=" + age. (substitute your variable names and values as appropriate)
B4A.CallSub ('fromWebview',true,stringwithvalues);
-------------------------------------------------------------------------------------------------------------------------------------------------------
run your app. if you can see your captured values in the b4a log, we can proceed.