I am an ASP novice, and need some help.    
 Here is my code for the first cell in my table on the page 
called "Currmealplan": 
<div id="Layer6" style="position:absolute; width:499px; height:330px; 
z-index:13; left: 179px; top: 220px;"> 
  <table width="100%" height="311" border="0" cellpadding="3" 
cellspacing="0">
    <tr>
      <td width="34%"><a href="Inext.asp"><%=
(rs_activemealplan.Fields.Item("SatB").Value)%></a></td>

When a user comes to this page, this table is populated with records 
from a database table (as you can see <%=
(rs_activemealplan.Fields.Item("SatB").Value)%>).  This database 
table is called "mealplan" and looks like this:
___________________________________________________
Username | BeginDate | EndDate | SatB | SatS | etc.|
----------------------------------------------------
value    |date value |date valu|text  |text  | etc.|
----------------------------------------------------
etc.

So when a User (value "username") comes to this page, the table 
mentioned above (via the code) is populated with values for SatB, 
SatS, etc, from the database table "mealplan.  If there is no data in 
the database table then the text "Click Here to Add" will show up and 
be linked to Inext.asp.  

Here's what I want to do.  I want the user to come to this page and 
click on the text "Click Here to Add."  When they do so, I want the 
asp code to insert the value of the stored cookie, named "meal" (at 
this point the cookie is stored) into the table "mealplan" (the same 
table above) where the username is equal to the session 
variable "username" and where the beginning date is equal to the 
stored cookie "beginning date."  And I want it to add the value of 
the stored cookie named "meal" into the SatB field/column of 
the "mealplan" database.  

I now realize that the program does not have a way to identify that 
that particular cell on the webpage should have a value of SatB, so 
that it may refer to this value so it knows which field/column to 
enter the value of the cookie "meal" into.  Do I need to add a button 
instead of just a link, and give the button a value of SatB?  Do I 
need to add a hidden field, instead of a button with a value of 
SatB?  

After the asp code inserts the value of the stored cookie "meal" into 
the apporpriate field in the database table "mealplan."  I want it to 
automatically link to the page "Inext.asp".  This page call the same 
recordsets so that the user can see that the value of the stored 
cookie "meal" was entered into the appropriat place in the database 
table.  

I hope this clears up all misunderstandings.  Again, thanks so much 
for all of your help.  






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to