| | |||||
| ||||||||
| Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: May 2004
Posts: 3
![]() | 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????? |
| |
| | THREAD STARTER #3 (permalink) |
| New Member Join Date: May 2004
Posts: 3
![]() | 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> |
| |
| | #4 (permalink) |
| New Member Join Date: Apr 2004 Location: Scotland
Posts: 12
![]() | 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!!! |
| |