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

- SOLVED - HTML : How to insert usn/pw/vouch fields into custom page?

Scheduled Pinned Locked Moved Captive Portal
3 Posts 1 Posters 802 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.
  • E
    EOC2611P
    last edited by Jul 2, 2016, 2:31 PM Jul 2, 2016, 11:08 AM

    Hello everyone,
                                i am using a splash page with an image that occupies the whole page and also act as a button, so, once someone clicks anywhere on it, get redirected on a website hosted on a local server.
    I would like to add 3 more fields on top of it, namely the "username", "password" and "voucher", i did try for a while, but html is not one of my best talents and comsequently the page gets always messed up, with the image being cut or moved on top of those fields and similar problems….
    This is the code i am using without those 3 fields, can anyone help me with it?

    1 Reply Last reply Reply Quote 0
    • E
      EOC2611P
      last edited by Jul 2, 2016, 2:04 PM Jul 2, 2016, 1:14 PM

      I finally fixed my problem  :D
      Basically i merged one custom page i found online with my page, and after hours and hours of trying to resize the image without success, i finally found out why, simply because despite being an "image", the page was just seeing it as a "button" so all i had to do is to add the button's size in my template and that was enough… ;D
      Now i need to clean it up of all the extra things i don't need, but i will add the code here just in case someone else need it
      Big thanks to the creator (you can find it inside the code), i only played a bit with it.

      <title>(Company Name Here) Hotspot - Secure Access!</title>

      <title>Secure Access - Login</title>

      <form method="post" action="$PORTAL_ACTION$">

      <center>

      |
            Welcome to (Your Company Here) Hotspot |
      |

      <center>

      |

      <center>

      <center>

      |

      <center>

      To gain access through the internet, Please enter your Username and Password or Voucher Code.

      If you have any difficulties you may contact our technical support technician at (Tel. No Here)

      |   | Members Only |
      | Username: | |
      | Password: | |
      |   |
      |   | Prepaid User |
      | Voucher Code: | |
      |   | |
      | | |


      |

      SERVICES OFFER!

      |
      |   |
      | Prepaid |   | Unlimited Surfing - up to 4 Mbps |
      | 1 Hour | USD 1.00 |   | 1 Day | USD 10.00 |
      | 3 Hours | USD 2.00 |   | 7 Week | USD 50.00 |
      | 5 Hours | USD 4.00 |   | 1 Month | USD 150.00 |
      |   |
      |

      OTHER SERVICE!

      |
      | Reformatting | USD 100.00 |   | PC Maintenance | USD 80.00 |
      | Apps Installation | USD 50.00 |   | PC Upgrade | USD 85.00 |
      | PC / Laptop repair | USD 100.00 |   | Games | USD 30.00 |
      |   |

      </center>

      |

      </center>

      </center>

      |

      </center>

      |
      |

      ©Copyright 2016 (Your Company Here) Hotspot. All Rights Reserved.

      Created By: Benjamin S. Roca Jr.

      |

      </center>

      </form>

      1 Reply Last reply Reply Quote 0
      • E
        EOC2611P
        last edited by Jul 3, 2016, 9:09 AM Jul 2, 2016, 2:01 PM

        I just realized that my big image's button does not redirect me anymore to the intranet site, but just on the "Invalid Credentials Specified" page, as when a wrong voucher/password is entered…
        There is any way to make both things works??

        1. Inserting voucher code or username plus password = access to the internet

        2. Just clicking on the huge image's button= access to the intranet only(NO www)

        Solution:
                        I just put my big button image as the "error's page" and now clicking to it i get redirected to my local host.

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received