background preloader

Web

Facebook Twitter

How to submit a form using PHP. There are situations when you want to send data using POST to a URL, either local or remote.

How to submit a form using PHP

Why would you want to do this? Probably you want to submit data to an opt-in form, but without taking a valuable visitor away from your site. Or maybe you want to send data to several applications for various purposes, which would be impossible to do in the usual manner. So how can we deal with this problem? Simulate submitting a form using cURL So what is cURL anyway? What we are going to use is, cURL HTTP. cURL supports POST and GET methods, file uploads, cookies, user/password authentications, even using proxy servers for connecting.

It can literally be used to programmatically simulate browsing behavior. So how do I use cURL to post data? Begin by creating a new connection. A new connection is created using curl_init() function, which takes the target URL as parameter (The URL where we want to post our data). Now let’s set some options for our connection.

Poo

Code Snippets. Códigos de colores HTML. El sitio web Códigos de colores HTML le proporciona herramientas gratuitas de colores para encontrar colores HTML para su sitio web.

Códigos de colores HTML

1.7 Manual de Referencia. Convertir HTML => PDF - es. Jquery. Programación en JavaScript. Comentarios midesweb Aprende Javascript, incluso sin saber programar Este manual lo escribí hace años, pero hoy todavía sirve para aprender Javascript desde cero.

Programación en JavaScript

Lo hice pensando en que incluso las personas que no saben programación pudieran aprender a programar y utilizar el lenguaje Javascript. ericzon_xxxx manual JavaScript La verdad es que para aprender rápidamente JavaScript va bastante bien, comenzando desde 0. Un 10 al creador pedro_locutus No se imprime Hola. ¿pdf? Your JavaScript goes WHERE? Let me start by saying that I was not trying to be controversial.

Your JavaScript goes WHERE?

I was at Boise Code Camp giving a session about Asp.Net MVC, and I happened to mention that JavaScript was supposed to go at the bottom of your page. Plus, I said this in a “of course you all know this already” type of voice, thinking this needed no further explanation. Then the hands started raising. Quickly, I might add. I had to explain myself. MVC en Javascript, con AJAX y jQuery, Parte 2: Controladores. En el tutorial anterior aprendimos a crear una interfaz base que usa las pestañas de Jquery UI como navegación y el plugin Jquery Address que permite utilizar los botones del navegador atrás y adelante, compartir la URL, guardarla en favoritos, etc. como hacemos cuando navegamos entre páginas normalmente pero en este caso para la navegación AJAX.

MVC en Javascript, con AJAX y jQuery, Parte 2: Controladores

En HTML5 ya hay nuevas tecnologías para hacer el cambio de URL sin recargar, pero mientras tanto usamos Jquery address y similares En este nuevo tutorial usaremos objetos en javascript para ordenar el código que se ejecutará entre las acciones de una pestaña u otra.Asumiremos que cada pestaña es un "Controlador" y dentro de ellas ejecutaremos "Acciones" tal como lo hacemos en Frameworks como Symfony, Codeigniter, etc. Por ejemplo cuando accedemos a noticias/lista, internamente estamos usando el controlador Noticias y la acción "lista". IsArray en javascript sin instanceof.

JavaScript Timing Events. Ámbitos y Alcance en Javascript. Dependiendo de los lenguajes programación en los que hemos programado con anterioridad, en Javascript nos podemos topar con algunas sorpresas, y no todas ellas son agradables, Específicamente, puede ser un problema si venimos de un background de lenguajes con alcance de bloque (c, c++, java, etc.) o sin él (basic, pascal, etc.).

Ámbitos y Alcance en Javascript

Open external links in a new tab/window using jQuery. 9 Useful PHP Functions and Features You Need to Know. Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+.

9 Useful PHP Functions and Features You Need to Know

Even after using PHP for years, we stumble upon functions and features that we did not know about. Some of these can be quite useful, yet underused. With that in mind, I've compiled a list of nine incredibly useful PHP functions and features that you should be familiar with. 1. Functions with Arbitrary Number of Arguments You may already know that PHP allows you to define functions with optional arguments. First, here is an example with just optional arguments: Now, let's see how we can build a function that accepts any number of arguments. 2. Many PHP functions have long and descriptive names.

Think of it like a more capable version of the scandir() function. You can fetch multiple file types like this: Note that the files can actually be returned with a path, depending on your query: 3. By observing the memory usage of your scripts, you may be able optimize your code better. Mktime y checkdate en javascript « BeezNest Open-Source specialists. Les mostrare como crear dos funciones que son muy conocidas en php (mktime y checkdate) pero en este caso esta hecho con javascript cuyo uso puede servir si se necesita usar al lado del cliente, ideal para validar fechas antes de entrar al servidor (que puede servir para cualquier lenguaje de programacion) La funcion checkdate verifica la validez de la fecha formada por sus argumentos.

mktime y checkdate en javascript « BeezNest Open-Source specialists

Una fecha es considerada válida si cada parámetro es definido apropiadamente.Devuelve TRUE si la fecha dada es válida de lo contrario devuelve FALSE.