$_get Not Working On My Php
I Call my PHP into my javascript code, may I know why $_GET not working in my PHP file? My URL is : localhost/img/index.php?fname=johndoe Javascript inside my index.php is : <
Solution 1:
You are trying to read the data inside uploadimage.php
but the query string is on your request to index.php
. You have to include it in each request you want to read it from.
e.g.
$('#redactor_content').redactor({
imageUpload: 'uploadimage.php?fname=<?phpechoisset($_GET['fname']) ? htmlspecialchars($_GET['fname']) : ""; ?>',
minHeight: 200 // pixels
});
Post a Comment for "$_get Not Working On My Php"