My situation is a simple form with a single field that allows users to update a specific link in a database field. If a user submits a link that contains url variables, smd_query's own ?urlvar / ?servervar syntax cuts in and strips out the question mark from the submitted value.
Returning the $POST variable using txp:page_url shows the form returning the link with the question mark, while the debug attribute in smd_query shows that the db query is without a question mark.
Workaround for now: switch directly to a txp:php snippet using txp's own safe_query or safe_update function.
My situation is a simple form with a single field that allows users to update a specific link in a database field. If a user submits a link that contains url variables, smd_query's own
?urlvar/?servervarsyntax cuts in and strips out the question mark from the submitted value.Returning the $POST variable using
txp:page_urlshows the form returning the link with the question mark, while thedebugattribute in smd_query shows that the db query is without a question mark.Workaround for now: switch directly to a
txp:phpsnippet using txp's ownsafe_queryorsafe_updatefunction.