Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 3rd, 2003, 12:21 PM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Record History

I have an form that inserts records in to an SQL database. In the records there is a field that retrievs the users log in. What I want to do is display a 10 or 15 record history on the form for that user. Can someone help with this?

Reply With Quote
  #2 (permalink)  
Old December 3rd, 2003, 12:26 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You want a history of the user's logins? What do you want help with: the SQL table structure? a query? writing it out in asp? Be a little more specific.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
  #3 (permalink)  
Old December 3rd, 2003, 12:44 PM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry. I'm looking to list a 10 - 15 record history of the data the user entered. I would like to list it on the bottom of the same form used for the data entry. I need help in writing it out in asp. I already have the table created an the data entry form created and they work correctly. i have attached the code for the form I'm using


Code:
<H1 Align="Center"><span style="font-weight: 400">[u]AXZ E-Mail Disposition</u></span></H1>

<HTML>
<HEAD>

<STYLE>
BODY        { background-color:#FFFFFF; font-family:verdana; }
.label        { text-align:right; vertical-align:top; }
.control     { text-align:left; vertical-align:top; }
.styling    { border-style:solid; border-color:#666666; border-width:1px; font:bold; }
</STYLE>
<SCRIPT language=JavaScript>
function toggle(theID)
{    
    var field01;
    field01 = document.getElementById(theID);        
    if(field01 != null)
         field01.style.display = (document.forms[0].Concern.value == "other")? "block" : "none";
}
</SCRIPT>
</HEAD>

<BODY>

<form action="../AXZ/AXZ_Email_AddNew.asp" name="FrontPage_Form1" method="post" language="JavaScript">
<div align="left">
<TABLE BORDER='0' CELLSPACING='10' style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" width="888" height="205">
<TR>
    <TD CLASS='label' WIDTH='186' height="20">Contact With</TD>
    <TD CLASS='control' width="690" height="20">
        <select CLASS='styling'  name="Contact_With">
            <option value=" "></option>
            <option value="Sponsor">Sponsor</option>
            <option value="Cust or Member">Cust or Member</option>
            <option value="Other">Other</option>
         </select>
    </TD>
</TR>

<TR>
    <TD CLASS='label' WIDTH='186' height="20">Plan</TD>
    <TD CLASS='control' width="690" height="20">
        <select CLASS='styling' name="Plan">
            <option value=" "></option>
            <option value="A">A</option>
            <option value="Z">Z</option>
            <option value="X-FN">X-FN</option>
            <option value="D">D</option>
            <option value="X">X</option>
         </select>
    </TD>
</TR>

<TR>
    <TD CLASS='label' WIDTH='186' height="20">Country</TD>
    <TD CLASS='control' width="690" height="20">
        <select CLASS='styling'  name="Country">
            <option value="USA">USA</option>
            <option value="Canada">Canada</option>
            <option value="Other">Other</option>
        </select>
    </TD>
</TR>

<TR>
    <TD CLASS='label' WIDTH='186' height="20">Language</TD>
    <TD CLASS='control' width="690" height="20">
        <select CLASS='styling'  name="Language">
            <option value="English">English</option>
            <option value="French">French</option>
            <option value="Spanish">Spanish</option>
            <option value="Other">Other</option>
        </select>
    </TD>
</TR>

<TR>
    <TD CLASS='label' WIDTH='186' height="20">Concern</TD>
    <TD CLASS='control' width="690" height="20">
        <select CLASS='styling' onchange="toggle('tobehidden'); return false;" name="Concern">
            <option value=" "></option>
            <option value="Program Enrollment">Program Enrollment</option>
            <option value="Program Inquiry">Program Inquiry</option>
            <option value="Vehicle Inquiry">Vehicle Inquiry</option>
            <option value="Vehicle Pricing">Vehicle Pricing</option>
            <option value="Suggestion/comment">Suggestion/comment</option>
            <option value="Redirected">Redirected</option>
            <option value="other">Other</option>
        </select>
    </TD>
</TR>
<TR ID='tobehidden' STYLE='display:none;'>
    <TD CLASS='label' WIDTH='186' height="11">Description</TD>
    <TD CLASS='control' width="690" height="11">
    <TEXTAREA CLASS='styling' rows="1" cols="55" name="Description"></TEXTAREA><br>
     If other was selected for the concern, Please give a brief 
    description</TD>
</TR>
<TR>
    <TD CLASS='label' WIDTH='186' height="24"></TD>
    <TD CLASS='control' width="690" height="24"><INPUT CLASS='styling' type='submit' value='submit'></TD>
</TR>
</TABLE>
</div>
</FORM>

</BODY>
</HTML>
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser history abdul_owiusa Javascript How-To 11 October 13th, 2006 09:13 AM
How to clear history toshi Javascript 0 August 17th, 2006 06:07 AM
history.back(-1); elania Javascript How-To 3 February 2nd, 2005 03:14 PM
History data stagedancer SQL Server 2000 2 December 8th, 2004 09:57 AM
Window.History pvasudevan Javascript 5 September 4th, 2004 03:49 AM



All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.