Questions tagged as 'php'

2
answers

"Share on WhatsApp" link

Based on this code <li><a class="whatsapp" title="<?php esc_html_e( 'Compartilhar no WhatsApp', 'grandmagazine' ); ?>" target="_blank" href="whatsapp://send?text=<?php the_permalink() ?>&url=<?php echo get_p...
asked by 04.08.2018 / 18:26
2
answers

How to count the number of times a word repeats itself in a sentence?

I have a particular phrase declared in a variable. See: $bacco = "Você tem que abrir seu coração pro SQL e pedir o que realmente quer."; I can see if there is a certain word within the sentence using strpos , like this: if (strpos($ba...
asked by 26.01.2017 / 18:00
5
answers

Get value input array

I need to retrieve the array value of the input that the user clicks, these inputs are of dynamic values. HTML / PHP <label> <i class="fa fa-lg fa-times-circle"><input value="<?=$fs_value?>" name="valor" type="butto...
asked by 29.01.2016 / 12:16
2
answers

Parse error: syntax error, unexpected ''

I want to print the value on the screen after the PHP result. public function iniciar() { $msg = ''; $oneclick = null; # login... $this->login(); if ($this->logado()) { $oneclick = $this->pegar_oneclick();...
asked by 16.02.2015 / 16:31
4
answers

How to get the penultimate and anti-second item in an array

I have an array that comes from a return of a form and would like to know how to get the penultimate and the penultimate position of the same in PHP.     
asked by 24.04.2017 / 16:39
3
answers

Block Internet Explorer

IE has a very poor performance on my site. Do not Run Borders Rounded buttons, and some other defects. Basically, Internet Explorer is being Extinct by Mozilla Firefox and Chrome Companion (Not counting Successor, Microsoft Edge, formerly called...
asked by 04.05.2015 / 22:55
4
answers

How to make a loading screen before opening the site

Hello, my site takes MUCH to start, a lot to load and I would like to know how to do a Loading screen (as in MEGA ) while the main site loads.     
asked by 13.05.2015 / 03:31
2
answers

What is the best way to post this echo?

What is the best way to post this echo? I know it's missing some quotes, I just do not know where to put it. <?php echo '<a href="page.php"><em>' <?php echo $locale->translate('ID'); ?> '</em></a>'; ?>...
asked by 11.08.2015 / 20:43
2
answers

Logic to validate free time in agenda

Good evening! I've been stuck for a couple of days in the following situation, I'm not able to parameterize or create an expression that validates interval between dates, which works like this: In other words, if you already have a s...
asked by 17.11.2017 / 01:25
2
answers

How to prevent the user from making changes in the input?

I have input in a form, but it should not have its value changed: <input type="text" name="pais" value=""> How can I prevent the value from being changed? <!DOCTYPE html> <html> <body> <form action="/act...
asked by 17.11.2017 / 17:31