Questions tagged as 'php'

1
answer

Curl post tracking

I'm trying to do a POST with curl to check my deliveries. But nothing is coming back. Can anyone help me? <?php $post = array('Objetos' => 'PN752805878BR'); // iniciar CURL $ch = curl_init(); // informar URL e outras funções ao CU...
asked by 30.06.2017 / 14:30
1
answer

create hide effect and news link show with classes and ajax

I have a class that retrieves data from the bank public function ListAjNot(){ try{ $lernot = "SELECT tit_postjauport, pos_postjauport FROM noticia "; $listnot = $this->con->Connect()->prepare($lernot); $lis...
asked by 29.06.2017 / 02:46
2
answers

Test access method, whether it is GET or POST [duplicate]

I'm having trouble inserting data into my form. The problem involves the transaction engine of my form, displaying the error message of die before even loading the page. My advisor said that the problem occurs because the code is run...
asked by 23.05.2017 / 14:10
1
answer

Save form data to the database

I'm having a hard time trying to create a form in Laravel 5.4 . The form appears normal, but when I click the button, the page reloads and the data is not saved in the database! {{ Form::open(array('url' => 'users')) }} <div class="form...
asked by 24.05.2017 / 14:30
2
answers

Pass the search input to another file

I'm doing a car registration project, it's almost at the end, but by altering the style file a bit and tinkering with the list to leave AJAX without refresh a bug strange happened, I've already tried several ways to solve : input w...
asked by 26.07.2017 / 14:55
1
answer

Configure Reply-To in form

Hello, I'm working on a PHP form where I need to set up the sender's email in the 'Reply-To:' field. $ from, so the reply to the email will be direct to the person who filled out the form. Here is the current PHP code. <?php $fr...
asked by 18.07.2017 / 22:56
1
answer

How to show result via ajax and jquery without refresh on page

I tried to implement an Ajax call on a project and I can not identify the error. I have a form for posting status and I would like it as soon as I post something it does not refresh on the page and rather it shows the result, then in a div. I...
asked by 16.07.2017 / 08:03
1
answer

How to return values from two distinct tables php

I am a beginner and wanted to create a function that would return me from the name of the cpf, user and password of the person in the system. Where the name and cpf fields belong to the users table and the user and password fields belong to user...
asked by 22.09.2017 / 21:18
1
answer

How to load modal edit dynamically using Laravel?

In an application I'm doing the following to load my Bootstrap Modals index.blade.php obs: data-target (#edit {{$ ecategory-> id}}) used to call modal @foreach($ecategories as $ecategory) //listando os registros <tr class="danger"&g...
asked by 26.09.2017 / 20:52
1
answer

Knowing if I am in a region through latitude and longitude

I need to know through coordinates if I am in the area of a region, in this case, the code below is in PHP with polygon, but it is not working. Am I missing the coordinate question (x, y)? I looked for something with the Google Maps API, but...
asked by 30.04.2018 / 01:26