Questions tagged as 'php'

1
answer

Is it possible to grab all the variables in a form at once to send to an email or do I need to declare one at a time?

Is it possible to grab all the variables in a form at once to send to an email or do I need to declare one at a time? <form action="welcome_get.php" method="get"> Name: <input type="text" name="name"><br> E-mail: <input ty...
asked by 11.10.2016 / 23:17
1
answer

How to change DIV style using AJAX without refreshing the page

I'm doing a complementary activity in college, and I have to make a system to change the style of the div if the user problem is resolved or not. When I click on resolved if the div is already with class alert-danger, this class will change t...
asked by 13.10.2016 / 16:33
3
answers

Change the iframe (embed bootstrap) according to the navigation bar button

Example:   Navigation: <ul > <li><a href="#"><span>INICIO</span></a></li> <li><a href="#"><span>FACEBOOK</span></a></li> <li><a href="#">...
asked by 14.10.2016 / 00:19
1
answer

Asynchronous pagination with laravel

I made a simple pagination with laravel using the ->paginate() return, but as you know, it's not an asynchronous action, which leaves bad paging. I found some examples, but I could not make it work. Does anyone have tips?   ...
asked by 07.12.2016 / 13:36
1
answer

Create / Modify table without deleting data Laravel Migrate

I have a question about laravel regarding the Migrates. I'm using Laravel 5.1 with SQLite database. When I run the command php artisan migrate or php artisan migrate:refresh , usually to add new tables or insert new fields to exi...
asked by 11.11.2016 / 19:45
2
answers

How to get the link id with jquery

I have a grid and in the last column I will have a link that will be following format: id.1 id.2 id.3 id.4 I would like to click on the link <a id="id."'.$row["id"].' href="#"> Jquery identifies the id so I can call a f...
asked by 21.11.2016 / 23:14
1
answer

Method returns instance after definition of property [duplicate]

Is there a name for the practice or pattern for this code snippet? Example: <?php class Pessoa { //... public setNome($nome) { $this->nome = $nome; return $this; } //... }     
asked by 13.08.2016 / 19:13
2
answers

How to configure the session?

I have this proposed activity: This is the Weekly Activity of the third competence and in the competency was shown what is and how to use functions with arguments and returns, scope of variables, forms, GET and POST sending method, sessions,...
asked by 03.08.2016 / 00:48
1
answer

How to call a function without waiting for it to finish?

I need to call a function in PHP that writes several records in the database which will take a lot, I need to do it in the background while PHP does something else, is it possible? If so, how?     
asked by 04.08.2016 / 22:42
2
answers

Delete file Laravel

When trying to delete an image from a specific directory I get the message that the file does not exist, however, referring to the path that the code is running I see that the file exists yes, and the path string is 100% correct. / p> I came t...
asked by 17.08.2016 / 22:28