Forms output format

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

I am taking the output of a text box form to an html page which can be
viewed by users. This works, but the format of the output is kind of ugly,
consisting of items of output data separated by horizontal lines and a lot
of white space. Is there a way that I can just get the output in a list,
without all the lines and white space?

Any suggestions would be appreciated. I have FrontPage 2003.

Thanks, Robert
 
Robert said:
I am taking the output of a text box form to an html page which can be
viewed by users. This works, but the format of the output is kind of
ugly, consisting of items of output data separated by horizontal
lines and a lot of white space. Is there a way that I can just get
the output in a list, without all the lines and white space?

Any suggestions would be appreciated. I have FrontPage 2003.

Thanks, Robert

Hmmm,

I am not the greatest expert.

For a start, my web provider doesn't permit updating of the site by the user
and I think this is what you are doing.
How else would you "take the output of a text box form to an html page " ?
(rhetorical question)

But, why don't you reformat the output with JS ?
This function takes the elements of a form (named 'form1') and writes them
to an email.
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length
var j = 0
while (i-- > 2) // drop last two elements (Reset and Submit)
{
body += elements[j].name
body += elements[j].value
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "myname" + ".com"
+ "?subject=Response%20from%20Form"
+ "&body=" + body
}

I am sure you could modify it to write instead to your HTML page. By adding
whatever you want into the variable body, you will be able to reformat the
responses as you wish
 
Back
Top