Questions tagged as 'php'

4
answers

Is there any way to pass the value of a variable to the value of an input through PHP?

Good, as the question shows, I wanted to know if it is possible only with PHP since I see examples but they do it with JavaScript. I would appreciate if you could give an example to take it as a reference.                                     ...
asked by 25.10.2017 / 19:20
3
answers

What value does a $ _GET give you?

I have the following code where I get data from the Urls if (isset($_GET['id'])){ $url = $_GET['id']; } I check the value that variable $url is giving me as a result:    book-php / Currently the data is obtained in such...
asked by 19.10.2017 / 14:48
2
answers

php - Problems inserting MYSQL data

Good, I am trying to insert data from my form, but when I press the submit button it sends me the message of: "Connection made" What is the message of my php file of connection , nothing more. The code to insert I have it in another fil...
asked by 16.06.2016 / 05:50
3
answers

Send JSON by POST with php to a webservice

Situation: I have a script with php in which I am receiving some data, with that data I create a JSON and that JSON I need to send it by POST with php5 (pure, no framework) to a web service in an online site. I found that it can be done...
asked by 27.09.2016 / 19:41
1
answer

Form POST PHP. Notice: Undefined index:

I have a problem when it comes to getting the values of a form using the POST method to a PHP. The form is in a modal window created with BootStrap: <form action='../php/editCardPatient.php' method='POST' role="form" data-toggle="validat...
asked by 15.02.2016 / 21:26
2
answers

Differences between file_get_contents () and curl

I'm doing a script to get content from a url and I found here , here and aqui what can be done with curl and with file_gets_contents() , but I'm not entirely clear about two things: What are the differences between t...
asked by 26.06.2017 / 10:57
2
answers

Convert a date to a timestamp?

How can I get a date in PHP format in timestamp ? $fecha = "2015-12-06"; echo TIMESTAMP($fecha);     
asked by 06.12.2015 / 10:17
3
answers

Can Laravel be installed in a shared hosting?

I will start to develop a project but I have a great doubt, can you install laravel in a shared hosting? Can I see the errors online and work directly? I have researched about Laravel and I see that Compoiser is used to install libraries, but be...
asked by 30.08.2016 / 14:36
2
answers

Print variables and strings in PHP, single or double quotes

I do not finish clarifying myself on how to combine variables and written strings directly. We are going to use the variable $test : $test="prueba"; Case 1 .- Enclose the variable in double quotes " " works: echo "Esto...
asked by 04.08.2017 / 22:03
2
answers

insert image with ajax

Good, I need to know how to insert an image into my database with ajax. Some time ago I learned to insert a php image in a conventional way. But now I need to do it through AJAX, and it's giving me problems. Assuming this is my form: Ing...
asked by 25.11.2016 / 11:18