Need help with form
Hello.
My son and I are creating a calendar for a school project. He wants to make it an interactive calender. When you click a particular day it links the user to a textarea box, so the user can input comments for that day. When the user is done inputting their comments, they click the submit button. Here's where the problem starts. Upon clicking submit, he wants the users comments to be sent to a weekly planner page. This is not happenening. What is happening is the entire text box is sent to the next page, but not the comments the user has input. We're both pretty knew at this, and we've been beating our brains out trying to figure it out. If anybody can help, we would both appreciate it very much.
Thanks in advance.
Jim Shilt posted this at 16:50 — 5th February 2000.
They have: 268 posts
Joined: May 1999
Can you give us a URL so that we can look at the code you already have?
Thanks
Jim
------------------
My goal in life is found in Phillipians 4:8-9
My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214
TopWtr4867 posted this at 18:28 — 5th February 2000.
They have: 6 posts
Joined: Feb 2000
I don't have a URL to give you because we haven't uploaded our pages yet, as we are nowhere near finished. However, I've placed the code we have below. Thanks in advance for any help you can give us.
<DIV ALIGN="CENTER">
<TABLE WIDTH="500" BORDER="1" CELLPADDING="10">
<A NAME="1Jan.html">
<TR>
<TD>
<H1>JANUARY 1<SUP>st</SUP>, 2000</H1></A>
<B>Include Your Daily Tasks Below.</B>
</TD>
</TR>
<TR>
<TD>
<FORM>
<TEXTAREA NAME="comments" ROWS="5" COLS="25">
</TEXTAREA>
<INPUT TYPE="submit">
</FORM>
</TD>
</TR>
</TABLE>
</DIV>
Vincent Puglia posted this at 19:40 — 5th February 2000.
They have: 634 posts
Joined: Dec 1999
Hi,
I'm confused, but since you are "new":
1) Do you realize you cannot save anything to the server with client-side javascript? As soon as the user leaves, the daily planner information is lost. (unless you save it as a cookie on the user's machine.)
2) The form & submit button code you sent should not do anything (there is no action)
3) What do you mean by the text box is sent but not the data?
4) what does the daily planner page look like?
That said:
1) make your submit button a regular button/link to the daily planner page.
2) put a textbox in the daily planner page
name = planTxt;
3) fill that by accessing the prior page's data
planTxt = opener.document.formname.comments.value;
(or somesuch ((I haven't had any espresso yet so mind's moving slow))
if you want a cookie tutorial, go to www.htmlgoodies.com
Vinny GrassBlade: cut&paste javascript
[This message has been edited by Vincent Puglia (edited 05 February 2000).]
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.