0
I am sending a form as follows:
After uploading the video, I would like the uploaded video table to include the name of the uploaded user as well.
I tried with post and get method as follows:
$monitor = $_GET["nomecomp"];
However, the Undefined Index.
Anyway, how can I pull php’s SESSION username, and send it to mysql through:
$sql_logar = "INSERT INTO video_monitor (titulo_video, disciplina, link_video, coment_video, arquivo, data, monitor)
VALUES ('$nome_video', '$disciplina', '$link_video', '$coment_video', 'Nenhum arquivo', NOW(), '$monitor')";
User ID and name are recorded in a Session?
– Flávio Kowalske
put the code snippet where it is saved
– Flávio Kowalske
I have not recorded in a SESSION... the only thing I pull is this: <?php echo $_SESSION['name']; ? > which is to display the name of the user that entered..
– Matheus