NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page HTML code in forms

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-05-2004, 08:25 AM THREAD STARTER               #1 (permalink)
New Member
 
JustJo's Avatar
Join Date: May 2004
Posts: 3
JustJo is an unknown quantity at this point
 



HTML code in forms


I have designed a form with FrontPage 2003 and all works well until I want to input HTML in a field. When I submit my form the results come completely as text, tags all all, instead of displaying the HTML code that I want. I.E. if I type on my field <a ref=....> </a> it comes exactly as I type it rather than a link.

Anyone could help? Please?????
JustJo is offline  
Old 05-05-2004, 03:04 PM   #2 (permalink)
Senior Member
Join Date: Apr 2004
Posts: 1,189
e39m5 is a jewel in the roughe39m5 is a jewel in the roughe39m5 is a jewel in the rough
 



im confused, why would you have link html in a form? and where is it showing up as text?
e39m5 is offline  
Old 05-05-2004, 06:25 PM THREAD STARTER               #3 (permalink)
New Member
 
JustJo's Avatar
Join Date: May 2004
Posts: 3
JustJo is an unknown quantity at this point
 



what I mean is that I want to have a form in which the fields can process HTML and when the form is submitted instead of seeing the raw code with tags and all, you are able to see the HTML as you see it on a webpage. Do I make sense?

For example, if I put <b> P </p> on this field I am typing, what I would like to see when I hit submit, is just a bolded P, not the code.

i meant <p><b>P</b></p>
JustJo is offline  
Old 05-06-2004, 07:27 AM   #4 (permalink)
New Member
Join Date: Apr 2004
Location: Scotland
Posts: 12
ILikeGoodDesign is an unknown quantity at this point
 



I know what you are trying to do is possible, but I think it would take me a while to work out how to do it.

Basically, you have to write a javascript.

First, you need to grab the thing they put in the form, and store it in a variable:

ANYWORDHERE = document.forms[0].elements['yourformfieldname'].value;

Then, you need to use "document.write(the name of the variable here)".

document.write(ANYWORDHERE)

I had to do a similar thing for a site I made (http://referencing.myquestion.net) where you put in details of a book/journal, and it churns out your bibliography entry in the correct format. When you click on a button, it creates a new window with your reference formatted correctly. The javascript actually writes the HTML of the new page itself.

But it took me ages to write - so good luck!!!
__________________
"Success is 99% failure"

www.great-website-design.com
ILikeGoodDesign is offline  
Old 05-06-2004, 07:31 AM THREAD STARTER               #5 (permalink)
New Member
 
JustJo's Avatar
Join Date: May 2004
Posts: 3
JustJo is an unknown quantity at this point
 



Thank you so much for replying, I am still trying, sometimes I hate FrontPage, I'll keep you posted!
JustJo is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:31 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger