Questions tagged as 'php'

1
answer

How to do echo of a superglobal variable in HTML

I have a superglobal variable $ _SESSION with a value inside and I want to do an echo in an HTML page but nothing appears. My code is as follows: <header class='main' id='h1'> <span class="right"><a href="layout.html">LogOu...
asked by 12.11.2017 / 15:13
3
answers

Long variables by URL

I am creating a website of readings but it happens that when sending by the URL the content of a TextArea is very long and it returns an error 414 the browser, I am using PHP with AJAX This is the TextArea field: <textarea id="I_Conte...
asked by 13.11.2017 / 03:42
1
answer

Help with dompdf and variable assignment [closed]

This is the code that calls the pdf <a href="pdf.php" ><i class="glyphicon glyphicon-file">Descargar-PDF</i></a> and this is the pdf.php <?php require_once'dompdf/autoload.inc.php'; // Reference the Do...
asked by 27.10.2017 / 16:17
1
answer

Send variables by $ _POST in wordpress

I am doing a module for a site in wordpress and I need to send data from one form to another PHP file, but if I try to do it in the traditional way I do not receive the variables for $ POST (this is my form) <form id="formRespuesta" me...
asked by 27.10.2017 / 14:36
1
answer

how to take data from a mysql table?

I need to take data from a table that has an equal field but I need that when printing that data I do not get one .... more or less something like that mysqli_query($conect,"SELECT * FROM asd WHERE id_p=3") //tnego 4 datos con id_p = 3 pro q...
asked by 06.11.2017 / 03:09
2
answers

Do not load the values in input

Good afternoon everyone, I'm pulling some data from the BD and I send them to javascript because the data pulls them as they see in the image, I do not know why the values are not assigned in the input. I appreciate your help. $(function...
asked by 24.01.2018 / 18:25
2
answers

Pass data from a blade to the JS

I'm using Laravel and I have a blade with the variable: {{$project->slug}} On the blade I also have a button with which I want to open a new window, but as I have different projects it has to be 'dynamic'. The code of the button is as...
asked by 27.10.2017 / 11:00
1
answer

get p content to give value to a php variable [closed]

I am creating an administration panel with Modals, I need to get the id to change the records in the database, I have chosen to give value to a paragraph from the click on the edit button, however I can not get the value, I get the following err...
asked by 24.10.2017 / 10:04
1
answer

How to protect the php files and photos uploaded to my host host host? [closed]

Hello everyone I am working on a project in which I have uploaded files to my host which I have put the .php extension as well as a photo folder, I would like to protect my files both the photos and the php files so that do not see neither its c...
asked by 12.10.2017 / 03:25
1
answer

Syntax of a wrong PHP fix

I have a little syntax error with a php fix (I'm a newbie in php), it happens that I need to send my form the load of 2 different tables to 2 select, both models work for me, and each probe and if the load. But sending both inside an array does...
asked by 10.10.2017 / 17:50