Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/06/2014, 14:05
Avatar de Durgeoble
Durgeoble
 
Fecha de Ingreso: marzo-2003
Mensajes: 462
Antigüedad: 21 años, 2 meses
Puntos: 2
Respuesta: recoger post por función

Vaya, la respuesta ha sido rápida, sin embargo continua sin funcionar, de hecho no devuelve nada visible.

Código PHP:
function recogepost($posteado$defecto) {
    if (
is_null(htmlspecialchars($_POST[$posteado]))) {
        echo 
"$defecto";
    } else {
        if (
is_null($defecto)) {
            
$devuelve 'vacio';
        } else {
            
$devuelve htmlspecialchars($_POST[$posteado]);
        }
        echo 
"$devuelve";
    }

__________________
Todas mis respuestas funcionaran correctamente en aquellos navegadores que respeten los estandares.