Replies: 1 comment 3 replies
-
Hello and welcome to SQLPage ! The logic you mention in your description above seems correct to me. Can you share a small sql snippet that reproduces your issue ? Are you sure the check if user is logged in step does not return anything to the browser ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i'm trying to setup a insert form which only works for an authenticated user
form.sql
action.sql
i would like to add a redirect in the action.sql returning to the form.sql (with or without the filled in data, so it can be edited)
but i always get this error,
The redirect component cannot be used after data has already been sent to the client's browser. This component must be used before any other component. To fix this, either move the call to the 'redirect' component to the top of the SQL file, or create a new SQL file where 'redirect' is the first component
the suggestion seems clear, but i don't how see how to setup in that case the flow described?
(the goal is to have a form where only validated users can input with a sensible redirect,
where the underlying input goes to more than 1 table)
(inspired by:
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions