Posts by Alex Fonseca • 17 points
4 posts
-
1
votes3
answers4103
viewsA: Put a url inside select option
Simple method: <select onchange="location.href=this.value"> <option value="#">Selecione</option> <option value="http://www.botafogo.com.br">Botafogo</option> <option…
-
-4
votes2
answers139
viewsA: Remove special characters while maintaining accents
Thank you @Jeff.Dev It was exactly what I wanted, I just minimized it and that’s it, it was perfect! <?php $removerEspeciais = 'Notícia Com Ácêntös'; $removerEspeciais =…
-
-4
votes2
answers139
viewsQ: Remove special characters while maintaining accents
I have this function below: <?php $titulo = "Notícia Com Ácêntös"; $titulo_novo = preg_replace(array('/[^a-zA-Z0-9 -]/', '/[ -]+/', '/^-|-$/'), array('', '-', ''), $titulo); echo $titulo_novo; //…
-
1
votes2
answers1163
viewsQ: Play javascript audio automatically
I have this script, that when I click it plays the audio: <!DOCTYPE html> <html> <div id="oi" onclick="reproduzir('audio01.mp3')">ME CLIQUE</div> <audio id="audio">…