NameSilo

HTML code in forms

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
Watch

JustJo

New Member
Impact
0
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?????
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
im confused, why would you have link html in a form? and where is it showing up as text?
 
0
•••
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>
 
0
•••
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!!!
 
0
•••
Thank you so much for replying, I am still trying, sometimes I hate FrontPage, I'll keep you posted!
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back