Hello i post a variable to this script..
i can use the variable to make a dir, and i can echo Hola in the browser, but echo “$data” doesn’t work
<?php
$data = $_POST['gen_id'];
system("mkdir $data");
echo "Hola";
echo "$data";
?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Echo doesn’t actually echo anything (at least it appears to not to) if the string is an empty string or null. If you want to know if it’s working or not use var_dump($data). When that runs it’ll put on the type and show something even if it’s an empty string of null.