What's the standard way to insert html text inputs to sqlite db? #12426
Unanswered
LeafWarrior
asked this question in
Q&A
Replies: 1 comment
-
did you try to send and receive the data as json object ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys. I've been trying to solve this for a while but to no avail. I feel like this is basic.
I have a program that allows users enter customer details (name, phone number, address) and add them to the database. They can enter up to 5. So they may choose to enter 1 and leave the other 4 blank if they wish. They can also choose to leave address or phone number blank just as long as there's a name.
My solution is to pass the user inputs from javascript to rust and have rust enter them in the database through a function. But it seems like I can't pass the data.
FYI: I haven't worked on the inserting to the database aspect yet. I'm trying to pass the user inputs to rust. Should I use Vector? I tried with a dummy 2D array and it won't pass the data.
Frontend: Javascript
Backend: Rust
Database: Sqlite
//HTML:
`
//Javascript:
//Rust:
Beta Was this translation helpful? Give feedback.
All reactions