How to filter a Db with a post variable from submitted form. Or even how to capture post variable form previous page/submit.
I did it using Get variable without submiting the form and using dataview filters but i want to know how to capture the post variables and filter a query. I can’t seem to do it.
thanks.
Just use the $_POST.variablename in the same way you used the $_GET GLOBAL variable
Yes but when i used $Get I have an Input Parameter in the Properties panel with i can populate
With $post i don’t see that.
I’m sure i did something wrong. I’ts my second day with wappler!
No you wouldn’t
With a get parameter it is sent with the query so need to be set in app connect to be sent via the query
With a post variable the value comes from a field in a form so will not appear in the query parameters in app connect
POST variables are form variables
1 Like
Is it enough that the post variable has same name as form field or do i also enter in the Linked Field. ?
Anyway , i scrapped that idea was talking hours to figure out.
I will use Get and server connect form. It gets the job done.
thanks.
Form field and $_POST must be same name, that’s all which is needed.
1 Like