Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/06/2011, 15:09
mnieto
 
Fecha de Ingreso: noviembre-2007
Mensajes: 32
Antigüedad: 16 años, 5 meses
Puntos: 2
Respuesta: Problema al añadir nuevos campos a formulario PHP

Muy buenas;

Gracias por la respuesta, los campos sí que se llaman igual. Os pongo el código por si acaso:

Código PHP:
<?php
    
    
///////////////////////////////////
    ///////////////////////////////////
    //// THIS WILL HANDLE THE SHORTCODES
    //// FOR PORTFOLIO
    ///////////////////////////////////
    ///////////////////////////////////
    
    //Our hook
    
add_shortcode('contact_form''ddshort_contact_form');
    
    
//Our Funciton
    
function ddshort_contact_form($atts$content null) {
        
        
//extracts our attrs . if not set set default
        
extract(shortcode_atts(array(
        
            
'email' => get_option('admin_email')
        
        ), 
$atts));
        
        
$output '
        <form id="contactform" action="'
.get_bloginfo('template_url').'/includes/mail/post.php" method="post" enctype="multipart/form-data"> 
            <fieldset>
                <div class="input-div">
                    <label for="name">Nombre <span class="naranja_fuerte_negrita">*</span>
                        <input type="text" id="name" name="name" maxlength="75" value="" tabindex="1" />
                     </label>
                     <label for="email">Email <span class="naranja_fuerte_negrita">*</span>
                           <input type="text" id="email" name="email" maxlength="75" value="" tabindex="2" />
                     </label>
                    <label for="empresa">Empresa
                        <input type="text" id="empresa" name="empresa" maxlength="75" value="" tabindex="3" />
                     </label>
                    <label for="telefono">Tel&eacute;fono
                        <input type="text" id="telefono" name="telefono" maxlength="9" value="" tabindex="4" />
                     </label>
                </div>
                  <div class="message-div">
                    <label for="message">Mensaje <span class="naranja_fuerte_negrita">*</span>
                        <textarea id="message" name="message" cols="20" rows="5" tabindex="5"></textarea>
                    </label>
                    <input type="submit" class="submit" value="enviar" />
                    <input type="hidden" name="c_email" id="c_email" value="'
.$email.'" />
                  </div>
            </fieldset>          
        </form>'
;                                        
        return 
$output;
    }
    
    include(
'tinyMCE.php');

?>
Saludos!