Questions tagged as 'php'

1
answer

Class PHPMailer not found in

I need help, I need to send emails and at the time of registering a ticket you should send one but only save it in the database and do not send mail and send this error "class phpmailer not found in (directory where the file is) ".     
asked by 27.09.2017 / 19:38
2
answers

PHP date error

Hi, I'm doing an application with php codeigniter and sql server 2000. I try to make an insert to the bd and insert the data but the date you are saving is: 1894-07-07 00: 00: 00.0 (datetime) instead of the current date. this is the code:...
asked by 26.09.2017 / 14:29
1
answer

how to create a txt file from a php form

good I have a doubt I'm new to php and I need to create a php form and have the data store it in a text document (.txt) this is the code that I have: <!DOCTYPE HTML> <html> <head> <title>Configuracion Red<...
asked by 27.09.2017 / 18:04
2
answers

Send data to a Laravel driver with AJAX

I am developing a web platform for an IPS with Laravel 5.4 and PostgreSQL 9.6 . The problem I have is the following: in the patient registration form, I would like to see the application by means of Ajax in the database when losing the focu...
asked by 28.08.2017 / 01:47
3
answers

How to check if a hidden input has been tampered with?

How can I check the manipulation of a input of type hidden passing as value a id ? Code: <input name="id" id="id" type="hidden" value="$id" />     
asked by 09.11.2017 / 19:26
1
answer

Fill in input text with user data from mysql

Good afternoon! I am creating a visitor registration form for commercials. I need to extract in an "input type=" text "as the default value: The commercial agent's code, (it is not the same as the client's id) This is the form:               ...
asked by 09.11.2017 / 16:44
2
answers

Replace exact word in PHP array

I would like to know how I can replace exactly words in PHP , I currently have this: $string = "Despues de tomar no maneje, es mejor llamar un taxi"; $exceptions = array( "de" => "DE", "es" => "ES" ); $conver = str_repl...
asked by 08.11.2017 / 17:58
1
answer

Avoid Session in 2 PHP Browsers

Good morning, I would like to know if someone knows how to prevent a user from entering their session in a different browser, the code that I have is the following if someone knows how I would thank them too much <?php //incluye la c...
asked by 13.08.2017 / 21:18
1
answer

How can I send a bootstrap table by email in php without losing format?

I am trying to generate a report, I recover my data from the database and I form a table with it, I want to output it by means of an email in php mail($to,"Reportex","",$headers); The problem is the bootstrap format is lost. here the cod...
asked by 18.08.2017 / 17:52
1
answer

Return false and show message

Again asking for help, I leave part of the code: Driver $strProyecto = $conex->getIndCol('id', sqlProyectos());//proyectos válidos. if ($opcion3 == 'save') { $proyecto_id = filter_input(INPUT_POST, 'proyecto_id', FILTER_VALIDATE_I...
asked by 16.08.2017 / 16:17