insert html in textarea

Secţiune dedicată începatorilor.

Moderatori: Moderatori, Start Moderator

hack_val
PHPRomania Supporter
Mesaje: 19
Membru din: Mie Iul 13, 2005 8:00 am

insert html in textarea

Mesajde hack_val » Vin Ian 20, 2006 2:22 am

cum pot sa fac acest lucru
deci vreau ca in <textarea> sa fie ceva cod html



Avatar utilizator
Birkoff
Senior Member
Mesaje: 6380
Membru din: Joi Mar 18, 2004 2:34 pm
Localitate: Bucuresti
Contact:

Mesajde Birkoff » Vin Ian 20, 2006 8:25 am

[php]
<form name="form1" method="post" action="actiune.php">
<textarea name="camp" id="camp">ceva cu cod html&lt;br&gt;
&lt;b&gt;rand ingrosat&lt;/b&gt;
&lt;u&gt;subliniat&lt;/u&gt;
</textarea>
<input type="submit" name="Submit" value="Submit">
</form>

[/php]

[php]
// actiune.php
echo $_POST['camp'];
[/php]
1) )
2)
3) (open source)
4) Vrei un magazin virtual la cheie, usor de folosit, cu api-uri incluse pentru maximizarea vanzarilor si multe alte facilitati? Da un semn si discutam.

andreibrr
Average Member
Mesaje: 120
Membru din: Sâm Oct 02, 2004 6:22 pm
Contact:

Mesajde andreibrr » Vin Ian 20, 2006 9:07 am

Foloseste un editor WYSIWYG (ex. htmlArea) - http://www.htmlarea.com/


Înapoi la “PHP Incepători”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 19 vizitatori