Questions tagged as 'html'

3
answers

Show DB value in Dropdown Box

I have a user-level value in my database and would like to be able to modify it in the change. I need to open the page to load the logged in user level: <div class="form-group"> <label>Nivel de Usuário</label> <sel...
asked by 07.10.2015 / 16:56
2
answers

Checkbox multiple and save in bank

I have a form where I can mark several checkbox at the same time and wanted to know how to identify the ones that are marked and save them in the database. In the database I will have a table and a column for every checkbox beca...
asked by 09.10.2015 / 00:10
1
answer

Replace if loop is empty

Well, I've got a question because I was kind of "stuck" without knowing how to do it. I have the following code: <? foreach($data as $index => $row) { $className = $index % 2 == 0 ? "class" : "class-1" ?> <form action="" name=...
asked by 24.04.2015 / 19:18
4
answers

Html DIV ID defined with echo

I have a problem that I can not figure out, I can not understand why the ID of the DIV does not get the value coming from php, using the value of the constant $i , it always receives the last value of the loop. the proposal is to show / hi...
asked by 20.04.2015 / 16:04
2
answers

what is the simplest way to print an indented text in javascript for html?

How can you print this in an easier way? public static void swap(int[] list, int i, int j) { /* This method simply takes an array and swaps its values at index i and j */ int temp = list[i];...
asked by 19.04.2015 / 23:20
1
answer

How to organize the body of HTML on the screen with CSS

I made a header and retractable side menu, but I can not now organize the body of the site next to the menu, it always stays down and if I float left and right it gets occupying 10% of the screen size and glued to the right side. HTML and CSS...
asked by 17.04.2015 / 14:07
1
answer

Character count inside distinct paragraphs (jQuery)

How to use jQuery to do the sum of characters in different paragraphs? Example: <div id="test"> <p>Lorem Ipsum</p> <p>Lorem Ipsum</p> </div> Obs. Can not add id and class to <p...
asked by 09.04.2015 / 16:28
1
answer

Display HTML with TWIG

I'm using TWIG in a project of mine but I can not display a string that has Bold or Italic, it simply ignores. Other HTML commands are normally displayed. Example: {{ 'Ao <strong><em><u>contr&aacute;rio do que se acred...
asked by 18.01.2015 / 22:05
1
answer

PHP Generate Popup Confirmation [Closed]

I have a php code that makes inserts into the database, these data came through forms, how can you return a message through a popup to the user informing him whether or not his registration / query succeeded ? and there is no redirection on the...
asked by 09.01.2015 / 17:03
1
answer

How to create a multi-image page? One over the other [closed]

I'm drawing a layout and I'm already thinking about what HTML and CSS will look like. I can even imagine how to do it, but it is possible that you have better opinions and suggestions. Layout still under development: Thepagehasseparateimage...
asked by 16.01.2015 / 03:37