Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Using An Image for Submitting

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      absolute
      last edited by

      After upgrading to 2.0, we've been having some issues with the Captive Portal in our company - after submitting the page simply refreshes it, without it being processed.  We couldn't identify why the captive portal system would appear to work, and then suddenly stop, after verifying that no Radius requests were being sent out.

      We seem to have pinpointed the issue, which is that our login page contained an Image input, and not a Submit input, to make it more visually appealing.

      After replacing the image with a standard Submit input, the form is now properly processed by pfSense, pulling up the error page or at least processing the request.

      To confirm, is it a requirement that we can't use an Image input named "submit", as can normally be done with forms?

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        My HTML manual says input type=image is the same as type=submit except the submit button is replaced with an image and the mouse coordinates are also sent to the form processor.

        Perhaps there is a problem with the coding of the HTML form OR the form processor is barfing on the coordinates. Please post the form section of the page.

        1 Reply Last reply Reply Quote 0
        • D
          dhatz
          last edited by

          pfsense adds a "captiveportal-" prefix to all files uploaded, so ensure you're referencing the correct new filename of the image file in your html form.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.