In php saving all $_GET variables in a session variable and make them accessible trough $_GET again
By : lbfromla
Date : March 29 2020, 07:55 AM
this one helps. I would like to save all $_GET variables in a session variable and make them accessible trough $_GET again later on. , Don't do this. But to save: code :
<?php
session_start();
$_SESSION["GET"] = $_GET;
?>
<?php
session_start();
$_GET = $_SESSION["GET"];
?>
|
Rails + Backbone.js - Hide secured data in page source
By : Khalil Haraksin
Date : March 29 2020, 07:55 AM
Does that help There is no way to hide it in the page source from the person visiting your website. This is because of the way the internet works, all the website contents are downloaded to the visitors browser and it would be very nasty if developers could hide things from the visitor. So, you really don't have any way of hiding those from a page visitor that knows his stuff, if the they are in plain text in the sources. And even if they were somehow hidden, when that request is launched, the user could just check the network tab of his developer tools and get the info from there.
|
How to use variable inside parameter $_GET? example: ($_GET[$my_var])
By : Sangeeta Prasad
Date : March 29 2020, 07:55 AM
around this issue I found the problem, i had already tested all of these options, but ever dont working, the problem was that I was testing the function inside the main page of my site, and on the main page (mysite.com) does not get the parameter (?page=nossuport), so always returning null values, when I used the variable in the GET or used the echo $GET[$my_var] to test.. It was a great carelessness of mine, would never work... by the way, the two parameters works correctly: code :
$_GET[$url_before]
$_GET["$url_before"]
|
Appending $_GET variable to URL already containing $_GET variables
By : Sergio Andrés Osma A
Date : March 29 2020, 07:55 AM
I hope this helps . I have a sub-navigation menu on my page that opens up whenever ?n=review is appended to the URL. code :
if(empty($_GET['language'])) {
$fragment = '?n=review';
} else {
// if language is set, get the value
$lang = $_GET['language'];
$fragment = "?language=$lang&n=review";
}
// I just made up the /index.php part, replace that with the proper link.
$url = "/index.php$fragment";
|
PHP $_GET hide url
By : ksenso
Date : March 29 2020, 07:55 AM
this will help If you want to hide search parameter, then send it by POST method and accept it by $_POST instead of $_GET. code :
if(isset($_POST['search'])){
$domena = ($_POST['search']);
}
|