I have a question about Safety. I have a Javascript variable:
var toSearch = "something"
I want to send this variable to another php page. I'm using sessions: <?php session_start(); ?>
From what I've read I need to use a AJAX GET/POST procedure to pass this javascript client side variable to PHP server side.
I know it's possible to do this with:
window.location.href = "myphpfile.php?name=" + javascriptVariable;
then $_GET['name']
the variable. I've read that this isn't safe? Is it?