Posts by Gladison Neuza Perosini • 861 points
70 posts
-
2
votes1
answer68
viewsQ: Protecting the form against invasion
what is the effective way to protect form against intrusion? I use the following code to filter some types of invasion: function anti_injection($sql) { $sql =…
phpasked Gladison Neuza Perosini 861 -
1
votes1
answer4551
viewsQ: Write inside a DIV using CSS
Like I write inside a DIV using CSS. Below I have the CSS and in this same code I would like to write a sentence to appear in this DIV. .gerenciar-coluna-exibicao-vismodelo{ position:relative;…
cssasked Gladison Neuza Perosini 861 -
0
votes0
answers691
viewsQ: Change Image Color by clicking button
I have several images, when clicking the button I want it to take the image ID pass this ID to Onchange function and run the function update(this.jscolor). Below is the excerpt of the complete HTML…
-
0
votes0
answers406
viewsQ: Removing a semicolon by whitespace from formatting - PHP
Hello, I have the following code to remove the colon and comma: $valor = str_replace("." , "" , $valor ); $valor = str_replace("," , "" , $valor); There is how to do this in a single code, without…
phpasked Gladison Neuza Perosini 861 -
0
votes2
answers991
viewsQ: How to make the first 4 characters of a string smaller than the others
I did a search and couldn’t find a code to leave only the first 4 characters of a string with a smaller size. I tried this code: $str = "Códigos"; $str = strtolower($str); Only that I need to leave…
-
0
votes2
answers1377
viewsQ: Watermark in images with PHP
I try to put a Watermark on each photo I upload, but I need to know how by this code I get the name of the photo after it was placed the Watermark for me to record in the database, since the class…
phpasked Gladison Neuza Perosini 861 -
0
votes1
answer299
viewsQ: How to take the dimensions of an image during an upload and resize proportionally the height based on the fixed width?
Based on fixed width, how to resize the height of an image proportionally? Code used to resize fixed form: include("resize-class.php"); $resizeObj = new…
phpasked Gladison Neuza Perosini 861 -
1
votes4
answers1844
viewsQ: Generate new name for image during upload - php
I use the code below and it works correctly, but I need that during UPLOAD the image name is changed. <?php require_once('conexao.php'); ?> <?php $cliente = $_GET['cliente']; $cod =…
-
3
votes1
answer2230
viewsQ: Upload AJAX select multiple files
This script below selects to UPLOAD only one file. I did several searches and couldn’t find anything I could implement so I could select multiple files. <script type="text/javascript" >…
-
1
votes2
answers186
viewsQ: Error when implementing sharing for facebook
Follow the code I have: <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js =…
-
-5
votes1
answer928
viewsQ: What code do I use to share on facebook the content of a page with a specific photo, title and description?
I need to share on facebook the content of a page with photo, title and specific description, how do?
-
1
votes2
answers868
viewsQ: How do I display a message if register found and if not found?
I have the following php routine: or die ("Não foi possível realizar a consulta ao banco de dados"); while($rowfoto2 = mysql_fetch_array($ridfoto2)) { How do I display a message if register found…
-
2
votes1
answer192
viewsQ: System of real estate sites and redirection to each domain pointed
I am developing a real estate system in which when the user makes his registration he gets a basic URL to access his site. Example: foo.bar/template/1/site.php? id=73646 That is, all the files of…
-
2
votes2
answers59
viewsQ: What php code do I use to know if the data is being received from a given form?
I have two search forms. The first with the name "buscaid" the second "buscaimv" needs a php code that checks whether data is being received from either of the two only, otherwise it will be…
-
2
votes1
answer442
viewsQ: background-image css clickable. Is there a way?
can make a background-image css clickable? Follow the code I have: position: relative; width:140px; font-family: Arial, Verdana; font-size: 15px; padding: 5px;…
-
5
votes2
answers104
viewsQ: How do you put a sentence inside a form field and it disappears when you click inside the field?
I would like to know how to put a sentence inside a form field, and it will disappear when you click inside the field. How do you do it in CSS? How do you do it?
-
0
votes2
answers988
viewsQ: How to pass another parameter and value with another variable via post?
I need to send it to the archive php neighborhood. a new variable, using jQuery, how do I do? I have an input like Hidden containing the variable idcl which contains customer data: <input…
-
1
votes4
answers1821
viewsQ: String and variable concatenation problem in jquery load function
Follow the full Javascript code: var idcl = document.getElementById('idcl').value; $(document).ready(function(){ $('#estados').change(function(){…
-
-1
votes1
answer56
viewsQ: What’s wrong with this concatenation?
$('#cidades').load('cidades.php?estado='+$('#estados').val()+'&cliente='+idcl);…
-
1
votes4
answers1023
viewsQ: Send more than one parameter in GET request
I use the code below to send a meter in a request Ajax of the kind GET. $('#cidades').load('cidades.php?estado=' + $('#estados').val()); How do I also pass a parameter called recurso?…