Fetching variables from HTTP-Post with microdot-Server #13112
Replies: 3 comments 1 reply
-
Hi takkowa |
Beta Was this translation helpful? Give feedback.
-
So it will be |
Beta Was this translation helpful? Give feedback.
-
Hi Sophiedegran, thank you for your hints, but it did not really help: In your first message, you said, that name and id is missing. I don't know if I got you right (probably not :-)) but I deleted the original parameter "name" form the microdot examnple by replacing it with wlanSsid and wlanPsk. IMO "name" is in the original microdot example the name of a variable, wich contains the name entered by the user. I did not understand, what you meant with "missing id" - what id do you mean? In your second message you suggest to replace the statement wlanSsid = req.form.get('wlanSsid') with "wlanSsid = req.form[wlanSsid]". |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to fetch some data from a a website, that a user has enetered before.
I modified the microdot example for templates, but it seems that I got something wrong.
The Code runs without any errors, but the variables, witch should contain the user entered values (wlanSsid & wlanPsk) stay null.
I uesed tzhe following code:
and the related index.html:
Do you have any idea, what I did wrong?
Beta Was this translation helpful? Give feedback.
All reactions