Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/03/2010, 14:07
Bam_Margera
 
Fecha de Ingreso: febrero-2009
Mensajes: 580
Antigüedad: 15 años, 3 meses
Puntos: 13
Respuesta: Problema pasando un embed VIDEO por un formulario

ok,

FORMULARIO

Código PHP:
<div id="stylized" class="myform">
<form id="form" name="altacat" method="post" action="javascript:FAjax('./php/altalink.php','contenidos','alias='+document.getElementById('alias').value+'&amp;url='+document.getElementById('url').value+'&amp;cat='+document.getElementById('cat').value+'&amp;coment='+document.getElementById('coment').value,'POST');">
<h1><img src="http://www.forosdelweb.com/f18/images/add.png" alt="search" width="25" height="25" /> New Link</h1>

<label>Tittle
<span class="small">Enter The tittle that will be shown when listing</span>
</label>
<input type="text" name="alias"  id="alias"/>

<label><img src="http://www.forosdelweb.com/f18/images/linket.png" alt="carpeta" height="25" width="25"/>URL
<span class="small">With our plugin for firefox you wouldt had to type this</span>
</label>
<input type="text" name="url"  id="url" />

<label><img src="http://www.forosdelweb.com/f18/images/folderet.png" alt="carpeta" height="25" width="25"/><span style='color:#000066;'>Save in..
<span class="small">Select Tarject Category</span>
</label>
<select id ="cat" name="cat"></p>
           
   
        <? 
            $id 
$_SESSION['id'];
            
$sqlQueryCat1 mysql_query("SELECT * FROM categorias ORDER BY nombre ASC");
            
// creamos u1n bucle while
            // que nos muestre todas las categorias
            // que tenemos guardadas en la BD
            
while($rowCat mysql_fetch_array($sqlQueryCat1)){
                if(
$rowCat['idpadre']==0){
                    if(
$rowCat['id']==1){
                        echo 
"<option value='$rowCat[id]'>$rowCat[nombre]</option>";
                    }
                }else{
                echo 
"<option value='$rowCat[id]'>$rowCat[nombre]</option>";
                }
            }
       
        
?>
    </select>
    
    
<label>Coment
<span class="small">Add notes, tags, or coments to this link</span>
</label>

[B]//aqui el usuario, en el formulario el usuer introduciria el embed[/B]
[B]<textarea id="coment" name="coment" rows="11" cols="40"></textarea> [/B]   

<button type="submit" name="submit" id="Registro">Add</button>
<div class="spacer"></div>

</form>
</div>



VISUALIZACION
Código PHP:
<p id="notes"><? echo $conment;?></p>
__________________
¿ya conoces la red social de cocina? descubre y comparte recetas de cocina
TONIWEB, un programador web freelance

Última edición por Bam_Margera; 03/03/2010 a las 15:02