Jump to content


Photo

Como Colocar Valor De Uma Variavel Em Um Textarea


  • Faça o login para participar
13 replies to this topic

#1 juninhoguitarr

juninhoguitarr

    12 Horas

  • Usuários
  • 250 posts
  • Sexo:Masculino
  • Localidade:campo grande - ms
  • Interesses:php/mysql/apache

Posted 13/04/2007, 22:02

Galera gostaria de colocar o valor de uma variável dentro de um textarea por que o valor é muito grande por isso tem de ser em um textarea
fiz assim mas não funcionou:

$sql = mysql_query("SELECT *
					FROM materialcapcurso
					WHERE id_mater = '" . $_POST['id_mater'] . "'
					ORDER BY id_mater") or die(mysql_error());
$row = mysql_num_rows($sql);
//while($row = mysql_fetch_array($sql)){
for ($i=1; $i<=$row; $i++){
	$dados = mysql_fetch_row($sql);

<textarea name='conteudo' value='$dados[conteudo]' cols='50' rows='20' id='conteudo' class=editar></textarea>


preciso colocar dentro de um textarea pois quero editar essa variável eu faço dessa forma dentro de um type=text e funciona mas no textarea não...

Alguém pode me ajudar?
Hospedamos seu site Gratuítamente: Programa de Parceirias.
PHP 5.x / MYSQL 5.x / Python, Perl
Superhospedagens.com

#2 Dudu

Dudu

    Viva la vida

  • Usuários
  • 1437 posts
  • Sexo:Masculino
  • Localidade:Uberlândia - MG
  • Interesses:PHP

Posted 13/04/2007, 22:48

Não não...
Isso é html amigo...

<textarea name='conteudo' cols='50' rows='20' id='conteudo' class='editar'>$dados[conteudo]</textarea>


Até mais ^_^

Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Moderador


Twitter: HostCheap


#3 juninhoguitarr

juninhoguitarr

    12 Horas

  • Usuários
  • 250 posts
  • Sexo:Masculino
  • Localidade:campo grande - ms
  • Interesses:php/mysql/apache

Posted 13/04/2007, 23:06

Não não...
Isso é html amigo...

<textarea name='conteudo' cols='50' rows='20' id='conteudo' class='editar'>$dados[conteudo]</textarea>


Até mais ^_^


Valeu kra mas não funcionou...
<textarea name='conteudo' value='$dados[conteudo]' cols='50' rows='20' id='conteudo' class=editar>$dados[conteudo]</textarea>

Não sei por que.

não coloquei ele com echo por que já está dentro de um echo....
Hospedamos seu site Gratuítamente: Programa de Parceirias.
PHP 5.x / MYSQL 5.x / Python, Perl
Superhospedagens.com

#4 Felipe Pena

Felipe Pena

    O temor do Senhor é o princípio da sabedoria

  • Ex-Admins
  • 6441 posts
  • Sexo:Masculino

Posted 14/04/2007, 00:13

<textarea> não possui atributo value.

echo '<textarea name="conteudo" cols="50" rows="20" id="conteudo" class="editar">' . $dados['conteudo'] . '</textarea>';

Felipe Pena
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29

#5 Guilherme Luiz

Guilherme Luiz

    Normal

  • Usuários
  • 78 posts
  • Sexo:Masculino
  • Localidade:São Paulo

Posted 14/04/2007, 01:15

<?php
$sql = mysql_query("SELECT * FROM tabela WHERE id='$_POST[id]'") or die (mysql_error());
$x   = mysql_fetch_array($sql);
echo "<textarea>$x[conteudo]</textarea>";
?>

agora é só modificar de acordo com suas necessidades !
just its a lie when the truth is found !

#6 Felipe Pena

Felipe Pena

    O temor do Senhor é o princípio da sabedoria

  • Ex-Admins
  • 6441 posts
  • Sexo:Masculino

Posted 14/04/2007, 09:26

Não use $_POST['campo'] diretamente na query. Valide primeiro a informação, segurança... segurança... ;)
Felipe Pena
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29

#7 Guilherme Luiz

Guilherme Luiz

    Normal

  • Usuários
  • 78 posts
  • Sexo:Masculino
  • Localidade:São Paulo

Posted 14/04/2007, 15:46

Isso é claro... SEGURANÇA EM PRIMEIRO LUGAR CRIANÇAS !!

mas isso é só um exemplo basico, se ele se preocupar com a segurança de seu script eh claro que ele antes vai validar o $_POST[], já caso ele não se preocupe ele vai deixar assim mesmo !! ^^
just its a lie when the truth is found !

#8 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 20/10/2017, 16:14

Viagara Suppliers viagra cialis Peut On Avoir Du Viagra Sans Ordonnance Purchase Discount Isotretinoin Nizagara En Ligne
30 Day Sertraline Paypal Progesterone Evapause viagra Acticin Medication Drugs With Overnight Delivery Dudley

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 20/10/2017, 17:28

Viagra Equivalent Sans Ordonnance Isotretinoin find Cialis Acquistp viagra prescription Tomar Viagra Anos
Cialis Pressione Alta online pharmacy Amoxicillin Chlamydia Pid Buying Soft Cialis On Line Cialis Online Italia
Acheter Du Viagra Sans Prescription En Caen Cialis 60 Ans viagra online pharmacy Cheapest Propecia Uk
Tadalafil Pas Cher Canada Real Progesterone Ups Is Cephalexin Safe For Pregnant Dogs viagra Is Amoxicillin Safe During Pregnancy Progesterone Order Now Low Price With Free Shipping Cialis Normal Dosage

#10 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 20/10/2017, 21:23

For Sale Provera Veraplex Sertatralinzoloft Without Prescription buy levitra professional online Where Can I Buy Prednisone
Viagra Bajo Receta Generic Soft Cialis viagra Giardiasis Treatment With Amoxicillin Viagra Ohne Rezept In Berlin Cialis Et Maux De Tete

#11 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 11724 posts

Posted 21/10/2017, 00:37

Cialis Prix Maroc Precio Cialis вâ¬0.77 Prozac Free Sample viagra online pharmacy Vidalista
Comprar Viagra Cialis Espana viagra online prescription Secure Ordering Dutasteride Medication Price Shipped Ups Store Falkirk Priligy Levitra

#12 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 21/10/2017, 01:56

Acheter Cialis Original En France brand levitra online Facsimile Ricetta Cialis
Priligy Revenue Does Propecia Regrow Hair Buy Teva Viagra 254 viagra Cost Of Viagra Pills Viagra Prescrizione
Isotretinoin Tablet In Germany Cialis Overnight Shipping Does Amoxicillin Cause Leg Cramps cheap cialis Viagra Super Plus Active Doxycycline And Dosing With Cephalexin Tadalafil Soft
Order Cost Of Propecia viagra Rio Rico Pharmacy Canadian Rx Net Kamagra Pour Femme Faire Donde Puedo Comprar Fruta Acai
Combivent Inhalers Without An Rx Vendita Cialis In Contrassegno Cialis Comprar En Barcelona viagra online pharmacy Priligy Buy Alldaychemist Com
Recovering From Amoxicillin Efficacite Cialis levitra shipped from us Canadian Online Drug Site Reviews 2.5mg Cialis Canadian
Baclofene Alcool Canada Cialis Grossesse Canadian Drugstores levitra prices Levitra Tabletten Nebenwirkungen Propecia 1mg Tablets Priligy Dapoxetin Gunstig Kaufen

#13 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 13822 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 21/10/2017, 04:21

Cialis Discount Pharmacy Phenergan 25 Mg Sale Montreal Propecia Dosis 5 Alfa Reductasa levitra coupon free trial Marca Propecia Finasteride Compra Levitra Generico Viagra Paypal Kaufen

#14 papedlok

papedlok

    Ativo

  • Usuários
  • 350 posts
  • Sexo:Masculino
  • Localidade:Vacoas

Posted 21/10/2017, 11:39

Discounts! types of hair gel progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE CONTACT'S Brand Classic Men Wallet European&American Crazy Horse Leather Wallets Fashion Purse Card Holder Man Vintage Wallets ( 59.96 $)Winter Brand Pants Men Hiking Softshell Pants Men Women Windproof Waterproof Thermal For Hiking Camping Ski A3061 ( 46.00 $)Shojgu: idut ispitaniya zenitnoj upravlyaemoj raketi bolshoj dalnostiCasual fashion color matching splicing wedge heel design women's platform boots ( 35.00 $)Discount 2016 new fashion summer t shirt men o neck cotton comfortable t shirt casual tshirt ( 11.28 $)spider man super heros wall stickers for kids room decorations 1937. diy pvc cartoon movie home decals 3d mural art posters 3.5 ( 5.76 $)7A Malaysian Straight Hair 4 Bundles Malaysian Virgin Hair Straight Human Hair 8""-26"" Unprocessed Virgin Straight Hair Bundles ( 50.00 $)Brazilian Full Lace Frontal Closure Free Part 13X2 Human Hair Ear To Ear Lace Frontals With Baby Hair Body Wave Lace Frontal ( 70.00 $)SJ X300 — 2C RC Quadcopter-46.49 $Wholesale video intercom door phone 7 inch touch screen 8gb sd card pir video audio record rfid card ir camera video doorbell ( 140.99 $)Navy blue mini dots cotton slim fit mens shirt ( 54.56 $) ForzieriQuick loans online money till payday - Kredito24LETV Leeco One X600 32GB ROM 4G Phablet-152.21 $Luxury men messenger bags genuine leather bussiness mens bags oil wax leather high quality men leather briefcase bags ( 127.92 $)Car led 1pcs t10 194 w5w dc 12v canbus 6smd 5050 silicone shell led lights bulb ( 0.72 $) 68.jpg
Discounts! list of good makeup products progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Black Leather Crossbody Bag ( 185.00 $)Xiaomi redmi 3s case xiaomi redmi 3s cover luxury flip leather case for redmi 3 pro ( 10.59 $)Brazilian virgin hair with closure queen hair product brazilian hair weave bundles with closure brazilian body wave with closure ( 62.30 $)8a malaysian straight hair with closure 3 bundles with closures cheap human hair with closure piece straight hc hair weave ( 107.00 $)Yishidun students computer trolley bag, abs+pc travel bags suitcase,cartoon large capacity travel suitcase luggage scroll wheels ( 113.16 $)Women's clothing candy colors women pants plus velvet thick warm leggings ladies pants for winter super elastic women leggings ( 10.38 $)7A Brazilian Virgin Hair Straight 4pcslot Brazilian Straight Hair 100% Unprocessed Human Hair Weave Brazilian Hair Weave Bundle ( 79.30 $)Mini M8S II 4K Smart TV Box Amlogic S905X Quad Core Processor-41.47 $Fly fishing mesh vest general size adjustable mutil-pocket outdoo fishing hiking ( 44.99 $)Chic flounce bowknot design cherry print one-piece women's swimsuit ( 23.43 $)Ceramic knife 3 ( 12.10 $)V4.0 waterproof soft shell tactical jacket outdoor hunting sports army swat military training windproof outerwear coat clothing ( 69.99 $)Sexy lady women underwire padded up embroidery lace bra 32 40b brassiere bra push up bras ( 2.88 $)Car Radio Mp4 Mp5 Player 1 Din HD With Rearview Camera 4.1 Inch Video Player Bluetooth Remote Control Stereo Aux Fm Usb Sd ( 46.58 $)Green Golfer Metal and Leather Mens Bracelet ( 153.00 $) 89bb.jpg
Discounts! great makeup products

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Wireless keypad quad4 band android ios app lcd display touch screen panel gsm pstn sms home security burglar voice alarm system ( 125.99 $)
2016 Men Travel Bags Black Blue Men Tote Shoulder Travel Bag Portable Men Handbags Big Weekend Bag Women Waterproof Duffle Bag ( 67.75 $)
Ladies Cheapest Canvas Cute Flowers Small Change Coin Purse Little Key Car Pouch Money Bag,Girl's Mini Short Coin Wallet ( 0.99 $)
Pair of delicate round plaid pattern earrings for women ( 2.87 $)
Televedushij sel kusok chelovecheskogo mozga, posetiv plemya kannibalov
Brazilian Virgin Hair Body Wave 3 Bundles lot Brazilian Body Wave 100% Unprocessed Brazilian Hair Weave Bundles Cheap Human Hair ( 53.80 $)
Cube iwork1x 2 in 1 Tablet PC-204.92 $
Flower seeds blue lotus seeds aquatic plants water plants midnight blue lotus 10pcs aa ( 0.89 $)
New fashion pu leather handbag women cross body bag high quality lady messenger bags bolsos mujer casual female shoulder bag ( 24.99 $)
ILIFE V7 Intelligent Cleaner Automatic Household Mute Sweeping Robot Lazy Vacuum Cleaner OBS System 162.99$
Womens Black Leather Gloves w Knot ( 130.00 $)
1kg supreme huangshan maofeng, good quality green tea,12 lb, clh01, free shipping ( 105.25 $)
Brazilian Water Wave Virgin Hair 4 Bundles Human Hair 7A Unprocessed Brazilian Curly Virgin Hair Brazilian Hair Weave Bundles ( 50.00 $)
Gogloo 5 1080P FHD 173 Degree WiFi Action Camera-69.57 $
Hot sale realtime car motorcycle gsmgprsgps tracker quad band tracking device tk110 gps locator google link real time tracking ( 22.24 $)


61.jpg
Discounts! best hair styling gel

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Fashionable women's plus size sweetheart neck floral one-piece swimsuit ( 24.23 $)
Spiga - Womens Brown Croc Stamped Calfskin Small Wallet ( 178.00 $)
SURGUT Men Shoes 2016 Top Fashion New Winter Front Lace-Up Casual Ankle Boots Autumn Shoes Men Wedge Fur Warm Leather Footwear ( 37.98 $)
Lemon value statement maxi choker vintage charms bead collar turquoise pendant boho crystal necklace women jewelry ( 4.95 $)
La Cattura Brand Original Quality Genuine Genuine Leather Lady Bags 2016 Brand Hot Sale New Fashion Bag Handbags Women Bags ( 45.85 $)
EA14 Aluminum Body Spinning Reel High Speed G-Ratio 5.21 Fishing Reels with Line Copper rod rack drive Fishing Reals ( 3.80 $)
Kinky straight brazilian virgin hair with closure,3 bundles human hair weave with closure,new arrival yvonne hair products ( 178.81 $)
NUU X4 US Version 4G Smartphone-103.36 $
Hot Selling DIY Car Cowhide Genuine Leather Steering Wheel Cover With Hole Size 37-39cm WhiteOrangeBrownBlue Car Accessories ( 9.59 $)
Auckland Racer Ox Glitter and Metallic Mesh Sneakers ( 62.50 $)
New herba brand ski goggles ski goggles double lens uv400 anti-fog adult snowboard skiing glasses women men snow eyewear ( 34.00 $)
Savannah medium saffiano satchel bag ( 280.84 $) Michael Kors
Pu sexy men underwear aussie pouch slip cueca male panties mens brief cotton briefs men s ( 4.39 $)
Gsm android ios app 99 wireless zone lcd smart dislay touch keypad pstn quad band sms home security voice burglar alarm system ( 120.49 $)
2X car laser projector Logo Ghost Shadow Light universal fit For Lada priora granta kalina niva largus vaz samara 2106 2107 2110 ( 15.00 $)


121bb.jpg
Discounts! a product review

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Brand clothing 2016 mens hooded hoodies men sweatshirt fashion hoody thick warm hoodie cotton slim male coat outerwear plus size ( 22.99 $)
XiaoMi Mi Pad 2 16GB ROM-177.67 $
Zanzea blusas 2016 women turn down collar chiffon shirt sexy deep v front lace up long sleeve blouse casual tops plus size s-3xl ( 15.94 $)
Shote bag chain small bags 2015 genuine leather bag messenger bag handbag women's ( 39.85 $)
Ghiberti green suede flat mens sneaker ( 141.54 $) D Acquasparta
Black Lacquer Sterling Silver Mini Tiger Ring ( 89.00 $)
2016 backless cross straps bandage women yoga sport pants tights sexy fitness wear bodybuilding clothing ropa deportiva ( 22.70 $)
1000 pieces 3.12.73.8MM Plate edge Copper Micro Rings Tube micro beads ring hook hair extension tool hair beads for dreadlocks ( 11.99 $)
5pcs set 4 gross buffer pad kit for car polisher ( 3.12 $)
Chic skull pendant black beaded necklace for women ( 4.28 $)
Original REMAX OTG Micro USB Adapter Android Compatibility ( $1.86 )
7a grade sexy formula malaysian curly hair 3pcslot malaysian virgin hair deep wave curly hair dhl free shipping human hair ( 103.76 $)
Ulefone Paris 4G Smartphone-160.12 $
Free shipping!kerui pstn landline 120 zones touch keypad wireless home alarm security system lcd auto dialer ( 102.59 $)
Clorts New Men Sport Trail Shoes Mesh Walking Outdoor Shoes Breathable Runner Athletic Shoes 3F015AB ( 72.35 $)


21.jpg




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq