Jump to content

The parameter does not pass to the input after sending form using htmx


Recommended Posts

Posted

Hello everyone!

I'm using htmx to send a form to /scan URL, but no "search" parameter is present in "get" in $input variable:

<form hx-get="/scan" hx-trigger="submit" hx-target="#result" hx-swap="outerHTML" id="scan-form">
    <input type="text" name="search">
    <input type="submit">
</form>
 
Can you please tell me where is my mistake?
  • Clarity changed the title to The parameter does not pass to the input after sending form using htmx
Posted

You send you request to /scan without the ending slash. ProcessWire by default redirects to a url with an ending slash. And all parameters get lost during the redirect.

  • Like 2
  • Thanks 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...