Foros del Web » Programando para Internet » PHP »

Ayuda A Un Super Noob

Estas en el tema de Ayuda A Un Super Noob en el foro de PHP en Foros del Web. Hola , estoy muy verde en tecnicismos :( aver si me podeis a ayudar en esto. Tento un componente tipo classifield, los usuarios cuando envian ...
  #1 (permalink)  
Antiguo 09/01/2006, 08:00
 
Fecha de Ingreso: enero-2006
Mensajes: 1
Antigüedad: 18 años, 3 meses
Puntos: 0
Pregunta Ayuda A Un Super Noob

Hola , estoy muy verde en tecnicismos :(

aver si me podeis a ayudar en esto.

Tento un componente tipo classifield, los usuarios cuando envian un mensaje tenen un formulario

Código PHP:
<table cellpadding="4" cellspacing="1" border="0" width="100%">
        <tr>
            <td valign="top" align="right"><?php echo _OGL_CATEGORY?>:</td>
            <td>
                 <strong><?php echo $lists['catname']; ?></strong> 
            </td>
        </tr>
        <tr>
            <td valign="top" align="right"><?php echo _OGL_TYPE?>:</td>
            <td>
                <?php echo $lists['types']; ?> <strong>*</strong>
            </td>
        </tr>
        <tr>
            <td width="20%" align="right"><?php echo _OGL_HEADER_TITLE?>:</td>
            <td width="80%">
                <input class="inputbox" type="text" name="title" size="50" maxlength="250" value="<?php echo htmlspecialchars$row->titleENT_QUOTES );?>" />
             <strong>*</strong></td>
        </tr>

        <tr>
            <td valign="top" align="right"><?php echo _OGL_CONTENT?>:</td>
            <td>
                <textarea class="inputbox" cols="30" rows="6" name="description" style="width:260px" width="300"><?php echo htmlspecialchars$row->descriptionENT_QUOTES );?></textarea>
             <strong>*</strong></td>
        </tr>
        <? if ($cat->uploadim) { ?>
        <tr>
            <td valign="top" align="right"><?php echo _OGL_IMAGE?>:</td>
            <td valign="top">
                <input class="inputbox" type="file" name="adimagefile" size="35" />
                <BR><? echo _OGL_IMAGE_SIZE_WARNING?></td>
        </tr>
        <? ?>
        <tr>
            <td align="right" valign="top">&nbsp;</td>
          <td>
                <input class="inputbox" type="hidden" name="email" value="<?php echo $row->email?>" size="50" maxlength="250" />
                          </td>
        </tr>
        <tr>
      </tr>
        <tr>
            <td valign="top" align="right"><?php echo _OGL_PHONE?>:</td>
            <td>
                <input class="inputbox" type="text" name="telephone" value="<?php echo $row->telephone?>" size="50" maxlength="250" />
            </td>
        </tr>
        <tr>
            <td valign="top" align="right"></td>
            <td>
                  <input type="button" name="send" value="<?php echo(_OGL_SEND_BUTTON); ?>" class="button" onclick="validate()" />
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top" height="30"></td>

        </tr>        
        <tr><td valign="top" align="right"></td>
            <td  valign="top" ><? echo _OGL_REQUIRED_FIELDS ?></td>

        </tr>

    </table>
Yo recibo esos datos, hay un campo oculto que detecta el email del usuario que esta enviando el anuncio

Código PHP:
<input class="inputbox" type="hidden" name="email" value="<?php echo $row->email?>" size="50" maxlength="250" />
ami me gustaria que en vez de recogerme el email,
Código PHP:
<?php echo $row->email?>
me recogiera el
Código PHP:
<?php echo $row->username?>
que se puede llamar en otros componentes, pero cuando quiero que me lo muestre en el classifiled me sale que la variable no esta definida.

Donde se supone que define las variables el classifield?

el componente consta de 3 archivos

classifield.html.php
classifield.php
admin.classifield.html.php

Perdonar mis nulos conocimientos y gracias por vuestra paciencia

un saludo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:48.