Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,358 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,171 people online right now. Registration is fast and FREE... Join Now!




forms.

2 Pages V  1 2 >  
Reply to this topicStart new topic

forms.

iamcenz
post 11 Dec, 2002 - 10:56 AM
Post #1


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


ok, im using a form to updatea feild in the database right. i need to show HTML code on the page but when i type it in and send it, then pull it out back on to the page it turns it into the HTML, so is there a way to make it that if put the HTML,PHP ect into the form and set it to the db and pull it back out it will just display it and not take it as if its real HTML?
User is offlineProfile CardPM

Go to the top of the page

capty99
post 11 Dec, 2002 - 11:17 AM
Post #2


the real kya

Group Icon
Joined: 26 Apr, 2001
Posts: 9,128



Thanked 15 times

Dream Kudos: 550
My Contributions


yes,

you could do it and display it into a text box which is the stupid way 2 do it... or u can do something else that just slipped my mind and is really pissing me off... GOSH DANGRET>
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 11 Dec, 2002 - 11:31 AM
Post #3


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


i cant put it in a textbox, would you want to read a site that has little textboxes everywhere cause i got to display alot of code. if you want to know im making my schools site
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 11 Dec, 2002 - 07:39 PM
Post #4


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


*bump* i need to know for class
User is offlineProfile CardPM

Go to the top of the page

Cookie Mobster
post 11 Dec, 2002 - 08:06 PM
Post #5


nooneenooneenooonee

Group Icon
Joined: 12 Oct, 2001
Posts: 4,723



Dream Kudos: 18
My Contributions


CODE

<?php
echo highlight_string($html_and_php_data);
?>
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 11 Dec, 2002 - 08:15 PM
Post #6


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


thanks sam
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 11 Dec, 2002 - 09:57 PM
Post #7


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


that didnt work its still not displaying the HTML as text sad3.gif
User is offlineProfile CardPM

Go to the top of the page

arniie
post 12 Dec, 2002 - 01:07 AM
Post #8


D.I.C Addict

****
Joined: 8 Oct, 2002
Posts: 999

im a little confused... can you show me what you mean..what you want?
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 12 Dec, 2002 - 04:35 AM
Post #9


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


ok, on my schools site im working on a the web publishing class section. and there is like real basic HTML tutorials. but when i put in the HTML source, it wont display it as text, it displays it as what the HTML would make. so i need it so it will display what is in the database as text.
User is offlineProfile CardPM

Go to the top of the page

arniie
post 12 Dec, 2002 - 08:06 AM
Post #10


D.I.C Addict

****
Joined: 8 Oct, 2002
Posts: 999

OK

before you put it in the database use the function.... htmlentities

that way, when you get the data from the db... it will display the text as

hell <b> o </b> rather than hello

I hope this is what you mean/want smile.gif
User is offlineProfile CardPM

Go to the top of the page

iamcenz
post 12 Dec, 2002 - 03:00 PM
Post #11


You wish you were my hand!

Group Icon
Joined: 26 Mar, 2001
Posts: 2,385



Dream Kudos: 201
My Contributions


how do you use that function? telling me what function to use aint gunna help me if i dont know how to use it.
User is offlineProfile CardPM

Go to the top of the page

Cookie Mobster
post 12 Dec, 2002 - 04:31 PM
Post #12


nooneenooneenooonee

Group Icon
Joined: 12 Oct, 2001
Posts: 4,723



Dream Kudos: 18
My Contributions


QUOTE(BluntedbyNature @ Dec 11 2002, 10:57 PM)
that didnt work its still not displaying the HTML as text sad3.gif

I don't follow, if you put it through it should encode all the html tags into the proper &; for display... How did you use it?
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 04:21AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month