HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 25th, 2000, 11:41 AM
ccm ccm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Hong Kong
Posts: 73 ccm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 9 sec
Reputation Power: 9
is there any <MagicTag> which can suspend the
browser reading the HTML <Tag>:

eg:

<MagicTag>
Hello<BR>
World<BR>
</MagicTag>

will output:
"HelloWorld" instead of
"Hello
World
"

I need to do this because I have a <textarea>
input field in a homepage. I dont want
anyway use <TAG> on that input field.

Reply With Quote
  #2  
Old March 26th, 2000, 04:43 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Not quite sure what you want but

<hello<br>world;

will output 'hello<br>world'

what exactly is it you want to achieve?
firepages@hotmail.com


------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #3  
Old March 26th, 2000, 04:46 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
sorry - forum disabled the <!--'&lt'-->
<!--<hello<br>world;-->

will output 'hello<br>world'

what exactly is it you want to achieve?
firepages@hotmail.com


------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #4  
Old March 27th, 2000, 12:43 AM
ccm ccm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Hong Kong
Posts: 73 ccm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 9 sec
Reputation Power: 9
Thanks for your reply firepages,

indeed, I have made a message discussion board by PHP/MySQL.

I just found out that
if someone put a HTML <TAG> eg, <TEXTAREA>
in a message,
my discussion board program might display
something "wrong"

i want the browser ignore reading the <TAG>
I am not sure if <!---
will work
let me try it out
thx for your reply.

Reply With Quote
  #5  
Old March 27th, 2000, 05:26 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
hi again
sorry about the last couple of messages - the forum would not print out the '&literal command - which is exactly the sort of thing that you want to avoid , malicious html tags in textareas etc can be a problem .
I note that you have PHP - so why not use the php ereg commands you can check and format any inputted data before you save it anywhere. See the Regular expression functions in the php manual (http://www.php.net).

Regards Simon

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > suspend browser reading "TAG"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway