Jump to content

BrainPill

Members
  • Content Count

    85
  • Joined

  • Last visited

Community Reputation

1 Neutral

About BrainPill

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I found the location of the browser cache here C:\Users\myname\AppData\Local\Google\Chrome\User Data\Default\Cache but I cant read the content of the files . The file list goes back to end september but some remembered cache data are from over a decade ago. What kind of files are this and how 'safe' is it?
  2. My question is about autocompletion or autofill. (is there a difference between these 2 definitions?) I can't get where input names or input urls or input emails are 'stored'. Its related to forms I made in html/css but the same thing occurs when going to a forum being on multiple years ago. The username is still there often with the credentials. The main question is: Where is this stored ?
  3. But I want this to be selected from the same table found in multiple databases. Anyone got a clue how to do this?
  4. solved it by using ORDER BY person_id DESC LIMIT 6
  5. I have a query it goes like this: SELECT `person_id` , MAX(exam_score) FROM `results` GROUP BY `exam_score` exam_score is column and some values are double when using query above I get 1 result for each. So if the exam_score is 10, 8, 9 , 10, 8, 5, 3 10 , 6 it does: 10, 9, 8 , 6, 5, 3 while I would want: 10,10,10, 9, 8, 8
  6. Hello I would like to create a script that counts the number of times a link is clicked on. I think using the tag/attribute <a href=" "> is not useful as it is not possible to put an attribute like value='<?php echo $count ; ?>' in it. Can it be done in php only or should I use javascript or jquery too?
  7. sorry I dont get it completely. Maybe it is useful to make checked attrib variable. But it does not change the effect of the button going back in the checked position. and what do you try to say with: $_POST['ok'] .
  8. The same principle is found here button slide example my problem is how to get the value of the radio button towards php
  9. maybe its more a css matter, not sure if this is the correct subforum
  10. the script has a radio button styled in a specific way. removing the checked option from the html part results in a wrong designed button. using the <form> tag makes only the unchecked button clickable. using javascript location.href towards this page or another gives the same effect as <form>, its partially unclickable. the code: <html> <head> <style type="text/css"> body, html { background: #954535; display: flex; justify-content: center; align-items: center; min-height: 100%; z-index: -1; } .btn_bl { border: 3px solid yellow; font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 12px; letter-spacing: 2px; word-spacing: 2px; font-weight: 700; text-decoration: none; font-style: normal; font-variant: normal; text-transform: uppercase; display: inline-block; padding: 10px; position: relative; text-align: center; transition: background 600ms ease, color 600ms ease; } input[type="radio"].toggle { display: none; } input[type="radio"].toggle + label { cursor: pointer; min-width: 60px; } input[type="radio"].toggle + label:hover { background: none; color: yellow; font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 12px; letter-spacing: 2px; word-spacing: 2px; font-weight: 700; text-decoration: none; font-style: normal; font-variant: normal; text-transform: uppercase; } input[type="radio"].toggle + label:after { background: #CFECEC; content: ""; height: 100%; position: absolute; top: 0; transition: left 200ms cubic-bezier(0.77, 0, 0.175, 1); width: 100%; z-index: -1; } input[type="radio"].toggle.toggle-left + label { border-right: 0; } input[type="radio"].toggle.toggle-left + label:after { left: 100%; } input[type="radio"].toggle.toggle-right + label { margin-left: -5px; } input[type="radio"].toggle.toggle-right + label:after { left: -100%; } input[type="radio"].toggle:checked + label { cursor: default; color: darkgrey; transition: color 200ms; font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 12px; letter-spacing: 2px; word-spacing: 2px; font-weight: 700; text-decoration: none; font-style: normal; font-variant: normal; text-transform: uppercase; } input[type="radio"].toggle:checked + label:after { left: 0; } </style> </head> <body><center> <br><br><br><br> <input id="toggle-on" class="toggle toggle-left" name="toggle" value="y" onChange="this.form.submit();" type="radio" checked> <label for="toggle-on" class="btn_bl">Yes</label> <input id="toggle-off" class="toggle toggle-right" name="toggle" value="n" onChange="this.form.submit();" type="radio" > <label for="toggle-off" class="btn_bl">No</label> <?php if(isset($_POST['toggle'])) { var_dump($_POST['toggle']); } ?> </center> </body> </html>
  11. is that the only way? I try to avoid javascript and client side scripting too much. Can it be done in php?
  12. I made this code, but I would like the radio button to only be checked the first time the page is visited after that a user should be able to switch and get the form values in php example: How can I fix this?
  13. Not sure in which sub forum this should be, but its about running a php script from a batch file. I addes PHP to the environment variables and tested it with: php -? I made a batch file like this: rem @echo off START /B php -f "X:\wamp\www\test-batch\hello-world.php" I made a new dir called: C:\batch here is the script hello-world.php located when I make the task in task scheduler it pop ups a command line shell saying \Windows\System32. Nothing is executed. BUT .... when I type cd\ in this command line it , the php script gives output on the screen. How can I make the php file execute instantly without going to the wrong directory ?
  14. this really helped me out thanks
  15. Hi there I made a function for getting the location of an error. The script where the error is, is done with $_SERVER['SCRIPT_FILENAME'] but when using __LINE__ I get the location of the script where the function code is placed, not where the function is executed. How can I solve this? example: <?php function find_file_linenum() { echo '<br><br>'; echo $_SERVER['SCRIPT_FILENAME']; echo '<br><br>login/condition error at line : .... '; echo __LINE__; echo '<br><br>'; } ?>
×
×
  • Create New...