Click to See Complete Forum and Search --> : help with form code...


Kristonia
12-07-2003, 10:13 AM
Hello, I have been going crazy trying to find code that will take what is on the form and display it below the form like a journal entry. I know how to email the form to myself but I want it too automatically add the info to the page like this:

Form:

How much sleep did you get |drop down box|
How did you feel today? |text box|
How do you feel about your performance? |text box|
What worked for you? |text box|
What didn't work for you? |text box|
What are your plans for next week? |text box|
[submit button]

Journal: After hitting submit the following appears at the top (or bottom) of the list of entries:

Automatic date insertion
Sleep: (selected from drop down box)
Felt: (text from text box)
Performance: (text from text box)
Worked: (text from text box)
Didn't work: (text from text box)
Plans: (text from text box)

Please Help!
Kristonia:confused:

htayC
12-07-2003, 12:03 PM
You could insert an inline frame underneath the form and enter the information into that frame using "document.write("Felt:" + " " + document.form1.textbox1.value)".

Kristonia
12-10-2003, 11:03 AM
I will try that, do I need to put html tags around the value to write it to the document?

htayC
12-12-2003, 03:06 PM
If you use that kind of technique to write the information in for each one, I dont think that it will be necessary to put any html tags in.