Questions tagged as 'php'

1
answer

What name does this bear? and can you add content to a database? [closed]

What name does this have and how do I add it to a website for mysql? Is that I want to create as well as in the forums a Web text this may or may not include images and link but I do not know where to get the source codes, this could se...
asked by 10.01.2017 / 11:10
3
answers

Obtain selected values of the checkbox array, and of the arrangement of inputs through loops. To execute a query with the obtained values

In this code I try to get values of checkbox selected, within a loop, and in another nested loop you get values of inputs fixed. With these iterated values obtained within the loops, I wanted to execute a delete , setting as...
asked by 02.01.2017 / 07:53
2
answers

Validate if I select a value in the checkboxs

When I select one or more of the possible checkbox , it shows me the message or messages that I have in PHP , but if I do not select any of the possible checkbox I get the following error: "Notice: Undefined index: TypeM in C:...
asked by 24.01.2018 / 13:42
2
answers

Validate a Jquery calendar with a number of days in Select

Good morning: I have a variable that contains an example number $ por_disfrutar = 4; And then with a select I do a for cycle to go through those 4 numbers and I throw the following: <?php for ($i=1; $i <=$por_disfrutar ; $i++) { echo...
asked by 09.12.2016 / 17:11
3
answers

Form with checkboxes - Do not send the "no checked"

I have a form on an html page with several checkboxes, of which (being options) is not necessary to be marked, but in the email I get the blank spaces between "checked" & "checked": $opcion1 .= $_POST['marcador1']; $opcion2 .= $_POST['m...
asked by 21.03.2017 / 13:44
1
answer

Get database text by ignoring tags

Good morning, I have some saved articles in a database, where all the tags appear so that when you download it with PHP you can load all the elements, ... The fact is that a preview of the article I just want it to be plain text. I have...
asked by 06.02.2017 / 22:06
3
answers

PHP echo variable does not work in jQuery

I was reading by stackoverflow in English the way to receive in jQuery the value of a PHP variable and I found this way: $(document).ready(function(){ $(".topic").click(function () { var postId = "<?php echo $post[\'id\']; ?>...
asked by 21.03.2017 / 05:36
2
answers

Random word generator with end

I'm working on a random word generator, I've made a word appear every time I press a button: <?php $frases = array( 1 => "Una lavadora", 2 => "Un movil", 3 => "Una muñeca", ); $numero = rand (1,3)...
asked by 04.02.2017 / 11:54
2
answers

QUESTION ABOUT SELECT * FROM

good morning, my question is this, I'm experimenting with database, and I have only 1 record in the database and I show it by the following: SELECT * FROM tabla very well, following this shows me only the record I have, how do I repeat that...
asked by 09.02.2017 / 19:39
3
answers

php contact form

I have a contact form, the problem is that it does not send the message, I have already looked at spam and others and I have no idea why it is not sent I put the code. (to perform the tests, I upload it to a hostinger server) contact.php...
asked by 21.09.2016 / 14:59