Solved

Counter

Posted on 2001-09-13
15
340 Views
Last Modified: 2010-04-09
Hi,

Can I add a counter for how many entries I have on a page that receives the info from a form?
0
Comment
Question by:MNY
  • 8
  • 6
15 Comments
 

Expert Comment

by:razsully
ID: 6479369
what kind of script do you use to read the date from form?
0
 

Author Comment

by:MNY
ID: 6479386
Well here's the scoop.
I use a form created in frontpage that send the data to a 2nd page and then people view that list. I'd like to add a counter for all the entries.

Tell me if you need to see the code, I'll post it

Thanks!
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6479448
Do you want to count the number of entries or the number of times the page has been accessed?

If it is the number of entries, you will just need to add a number field to your database and have the page display that.

If you need a counter on the page, there are dozens to choose from:

www.thecounter.com
www.fastcounter.com
www.fxweb.com

just to name a few.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:MNY
ID: 6479469
I need a counter for the entries and this is related to my other question about my form redirected to Excel...
0
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 100 total points
ID: 6479513
Right....so you are probably going to do it server side.  If I were you I'd wait until you see what the experts suggest as a solution for that question and build this into it.

You aren't going to want two separate db's....that is just silly.  All you are going to do is add a number field to the database and use it to count then call that field to the page.

It really isn't a separate question.
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6479534
Thanks for the A....now let's get you other question working....see you there ;-)
0
 

Author Comment

by:MNY
ID: 6480213
Ok here's the story... I'll keep posting the data to the same form that I used originally. Is there a way of adding a counter of all the entries on the page...
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6480466
Sorry...didn't get notif of your last comment.

>.I'll keep posting the data to the same form that I used originally

How are you posting it?  Can't help without code.
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6480470
And:  how are you listing them?
0
 

Author Comment

by:MNY
ID: 6480474
Sorry....
here it is:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="VI60_DTCScriptingPlatform" content="Server (ASP)">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>CS Command Center Call Tracking Form</title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="../stylesheets/inlinestyle01.css">
</head>

<body bgproperties="fixed">

<form method="POST" action="--WEBBOT-SELF--" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" >
  <!--webbot bot="SaveResults" u-file="cs_command_center.htm" s-format="HTML/UL" s-label-fields="TRUE" b-reverse-chronology="TRUE" s-date-format="%B %d, %Y" s-time-format="%H:%M:%S" s-builtin-fields="Date Time" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<a NAME="top">
          <TD>
          <A href="http://www.compaq.com/" style="font-size: 8pt; font-weight: bold; font-family: Arial">
          <IMG alt=Compaq.com
            src="../../desktop_systems/compaq.gif" border=0 width="174" height="26"></A></TD>
          <TD width="100%">
          <IMG height=26 alt=""
            src="../../desktop_systems/row1filler.gif" width="100%" border=0></TD>
          <TD>
          <a style="font-size: 8pt; font-weight: bold; font-family: Arial" href="http://inline.compaq.com/canada/">
          <IMG
            alt=Inline src="../../desktop_systems/inline.gif"
        border=0 width="188" height="26"></a></TD>
</a>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
<a NAME="top">
<td width="100%" bgcolor="#C0C0C0">&nbsp;</td>
<td width=31 bgcolor="#C0C0C0">&nbsp;</td>
</a>
<td width=61><a href="http://inline.compaq.com/search.asp">
<img alt="Search" src="../search.gif" border="0" width="57" height="18"></a></td>
<td width=61><a href="http://inline.compaq.com/alphindex/index.asp">
<img alt="A - Z Index" src="../azindex.gif" border="0" width="77" height="18"></a></td>
<td width=74><a href="http://inline.compaq.com/phonebook.asp">
<img alt="Phone Book" src="../phonebook.gif" border="0" width="92" height="18"></a></td>
<td width=90><a href="http://inline.compaq.com/support/index.asp">
<img alt="Inline Support" src="../inlinesupport.gif" border="0" width="105" height="18"></a></td>
<td width=104><a href="http://www.compaq.com">
<img alt="Compaq.com" src="../compaqonline.gif" border="0" width="97" height="18"></a></td>
<td width=99><a href="../default.htm" target="_top">
<img alt="Inline Home Page" src="../home.gif" border="0" width="64" height="18"></a></td>

</tr>
    </table>

  <div align="center">
    <center>
    <table
  border="0" cellpadding="2" cellspacing="1" bordercolorlight="#DDDDDD"
  bordercolordark="#000080">

<td align="center" valign="top">

    <center>
<div align="center" style="width: 736; height: 452">
  <table width="750">
    <tr>
      <td align="center" height="30" width="742">
        <div align="center">
          <table border="0" width="751" height="190" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
            <tr>
      <td align="center" colspan="6" height="48">
        <strong><font face="Arial" size="5">CS Command Center Call Tracking Form</font></strong></tr>
            <tr>
      <td width="114" align="right" height="33"><b><font face="Arial" size="2">
      Date:</font></b></td>
      <td align="left" width="122" height="33">
      <font color="#660033">
      <!--webbot bot="Validation" s-display-name="Date" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="20" --><input type="text" name="Date" size="15" maxlength="20"></font></td>
      <td width="134" align="right" height="33">
      <b><font face="Arial" size="2">Time</font></b>:</td>
      <td align="left" height="33" colspan="3">
      <font color="#660033">
      <!--webbot bot="Validation" s-display-name="Time" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="15" --><input type="text" name="Time" size="15" maxlength="15"></font></td>
            </tr>
            <tr>
      <td width="114" align="right" height="33"><b>
      <font face="Arial" size="2">Company :</font></b></td>
      <td align="left" width="122" height="33">
      <font color="#660033">
      <input type="text" name="Company" size="15"></font></td>
      <td width="134" align="right" height="33">
      <b><font face="Arial" size="2">Address :</font></b>
      </td>
          </center>
      <td align="right" height="33" colspan="3">
      <p align="left">
      <font color="#660033">
      <b>
      <input type="text" name="Address" size="51"></b></font></p>
      </td>
            </tr>
          <center>
            <tr>
      <td width="114" align="right" height="33"><b>
      <font face="Arial" size="2">City :</font></b></td>
      <td align="left" width="122" height="33">
      <font color="#660033">
      <input type="text" name="City" size="15"></font></td>
      <td width="134" align="right" height="33">
      <b><font face="Arial" size="2">State :</font></b>
      </td>
          </center>
      <td align="right" height="33">
      <p align="left">
      <font color="#660033">
      <b>
      <input type="text" name="State" size="15"></b></font></p>
      </td>
      <td align="right" width="132" height="33">
      <b>
      <font face="Arial" size="2">Zip Code :</font></b></td>
      <td align="left" width="122" height="33">
      <font color="#660033">
      <input type="text" name="Zipcode" size="15"></font></td>
            </tr>
          <center>
            <tr>
          </center>
            </tr>
          <center>
            <tr>
      <td width="114" align="right" height="33"><b>
      <font face="Arial" size="2">Contact :</font></b></td>
      <td align="left" width="122" height="33">
      <font color="#660033">
      <!--webbot bot="Validation" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="50" --><input type="text" name="Contact" size="15" maxlength="50"></font></td>
      <td width="134" align="right" height="33">
      <b>
      <font face="Arial" size="2">Phone Number :</font></b></td>
      <td align="left" height="33">
      <font color="#660033">
      <!--webbot bot="Validation" s-display-name="Phone" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="25" --><input type="text" name="Phone_number" size="15" maxlength="25"></font></td>
      <td align="right" width="132" height="33">
      <b><font face="Arial" size="2">Alt Phone Number :</font></b></td>
      <td align="left" width="122" height="33">
      <font color="#660033">
      <input type="text" name="Alt_phone_number" size="15"></font></td>
            </tr>
            <tr>
          </center>
            </tr>
    <center>
            <tr>
      <td width="114" align="right" height="34"><b>
      <font face="Arial" size="2">Alt Contact : </font></b></td>
      <td align="left" width="122" height="34">
      <font color="#660033">
      <input type="text" name="Alt_contact" size="15"></font></td>
      <td width="134" align="right" height="34">
      <b>
      <font face="Arial" size="2">Alt Contact Number :</font></b></td>
      <td align="left" height="34">
      <font color="#660033">
      <input type="text" name="alt_contact_number" size="15"></font></td>
      <td align="right" width="127" height="34">
        <b><font face="Arial" size="2">Logged by :</font></b></td>
      <td align="left" width="127" height="34">
      <font face="Arial" size="1" color="#660033">
      <b>
        <!--webbot bot="Validation" s-display-name="Logged_by" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="30" --><input type="text" name="Logged_by" size="15" maxlength="30"></b></font></td>
            </tr>
            </table>
        </div>
      </center>
      </td>
    </tr>
    <tr>
      <td align="center" width="742">
        <b><font face="Arial" size="2"><br>
        Description of Request:</font></b><br>
        <!--webbot bot="Validation" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="400" --><textarea name="Request" rows="4" cols="55"></textarea><br>
&nbsp;<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="552">
          <tr>
      <td width="152" align="right" height="22">
      <b><font face="Arial" size="2">Person taking action:</font></b></td>
      <td align="left" width="164" height="22">
      &nbsp;<font color="#660033"><input type="text" name="Person_taking_action" size="20"></font></td>
      <td width="109" align="right" height="22">
      <b><font face="Arial" size="2">Phone Number:</font></b></td>
      <td align="left" width="127" height="22">
      &nbsp;<font color="#660033"><input type="text" name="Notified_phone_number" size="15"></font></td>
            </tr>
        </table>
        <p><b><font face="Arial" size="2">Action Taken:</font></b><br>
        <textarea name="Action_taken" rows="4" cols="55"></textarea></td>
    </tr>
    </center>
    <tr>
    <center>
    </tr>
    </table>
  </div>

<p align="center">
        <input type="submit" value="Submit Information">&nbsp; <input type="reset" value="Reset" name="Reset">
</p>

</center>

</table>
  </div>

</form>
<p align="left">
<font size="-3" face="Arial">Compaq Confidential<br>
For content comments or questions, contact the <a href="mailto:roch.lambert@compaq.com">Editor</a>.<br>
Revised: <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B %Y" -->
</font>

    </p>
</body>
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6480482
Show me cs_command_center.htm
0
 

Author Comment

by:MNY
ID: 6480541
ok

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>CS Command Center List</title>
</head>

<body>
<script language="JavaScript">

/*
Find In Page Script-
By Mike Hall (MHall75819@aol.com)
Permission granted to Dynamicdrive.com to feature script in archive
For full source code, visit http://dynamicdrive.com
*/

var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);

var win = window;    // window to search.
var n   = 0;

function findInPage(str) {

  var txt, i, found;

  if (str == "")
    return false;

  // Find next occurance of the given string on the page, wrap around to the
  // start of the page if necessary.

  if (NS4) {

    // Look for match starting at the current point. If not found, rewind
    // back to the first match.

    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;

    // If not found in either direction, give message.

    if (n == 0)
      alert("Not found.");
  }

  if (IE4) {
    txt = win.document.body.createTextRange();

    // Find the nth match from the top of the page.

    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }

    // If found, mark it and scroll it into view.

    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }

    // Otherwise, start over at the top of the page and find first match.

    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }

      // Not found anywhere, give message.

      else
        alert("Not found.");
    }
  }

  return false;
}

</script>
</body>

</html>
<p>&nbsp;<form name="search" onSubmit="return findInPage(this.string.value);">
<p align="center">
<font size=3><input name="string" type="text" size=15 onChange="n = 0;"></font><font face="Arial" size="4"><input type="submit" value="Search Page">

</font>
</form></p>
<!--webbot BOT="FormInsertHere"
DESCR="The FrontPage FormInsertHere Component indicates the point in an HTML file where you want a default, Registration, or Discussion Component to insert new results."
-->
<hr>
<ul>
  <li><b>Company: </b>EDS</li>
  <li><b>Address: </b></li>
  <li><b>City: </b>NYC`</li>
  <li><b>State: </b>NY</li>
  <li><b>Zipcode: </b></li>
  <li><b>Contact: </b>Scott Vincent</li>
  <li><b>Phone_number: </b>214-693-6300</li>
  <li><b>Alt_phone_number: </b></li>
  <li><b>Alt_contact: </b></li>
  <li><b>alt_contact_number: </b></li>
  <li><b>Logged_by: </b>Kathi LaFrance</li>
  <li><b>Person_taking_action: </b>Bernie Gallagher</li>
  <li><b>Notified_phone_number: </b></li>
  <li><b>Date: </b>September 12, 2001</li>
  <li><b>Time: </b>21:29:23</li>
</ul>
<h3>Request</h3>
<p>Scott customer is EDS.  EDS client needs 1000 desk top units in NYC tomorrow.  They do not care what kind or type of desk tops.  Need to run 2000.</p>
<h3>Action_taken</h3>
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6480587
I'm kind of stumped here.  I was thinking a javascript again, but you are using a web bot....hard to insert anything in there.
0
 

Author Comment

by:MNY
ID: 6480609
Ah ok...I'm kinda running out of ideas...
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6480690
This is one of the problems with not doing it with a db.  Didn't you say somewhere along the line that you could use ASP?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 66
Send form to asp server side 6 26
CSS in HTML 5 51
javascript works in Chrome, but none of the other browsers 14 27
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question