Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Passing database info to page allow user input then pass into another database

Reply
Thread Tools

Passing database info to page allow user input then pass into another database

 
 
Renie83
Guest
Posts: n/a
 
      07-14-2003
Hi I really am going crazy!
I'm using VBScript, ASP, and SQL
My page reminds me of a shopping cart but looking at shopping cart
examples has not helped!
What I have is a page that brings in products ordered by a certain
company. Along with those values, I'm creating a text box at the end
of each record that a user may or may not enter in an estimated
delivery date. If the user does enter in a date I want that row of
data submitted to a table with that date. First of all I need to check
to see if the user has entered anything in the text boxes. I was
trying to go through them with a for next loop using
document.form.elements.length as my ending count but that did not seem
to work. Also another problem I am facing is making sure all the
records on the page are being looked at. I wanted to put my if
request.form("submitTop") <> "" underneath where my recordset is open,
but this too does not work.
So what I need to happen when the submit button is hit is:
A way to check and see if something is entered in a text box, if it is
then add that line of data pulled from my first table and the user
input estimated delivery date value into a new table. I need to make
sure I go to each record in my list to check to see if anything has
been entered in the text box.
Thank you very much. Any help on any little bit of my problem would be
greatly appreciated!
Renie83
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      07-14-2003
May I suggest splitting up your questions into individual posts that focus
on one particular task? I kinda got lost. Also, maybe some code or a
layout of your form would help.

Ray at work

"Renie83" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi I really am going crazy!
> I'm using VBScript, ASP, and SQL
> My page reminds me of a shopping cart but looking at shopping cart
> examples has not helped!
> What I have is a page that brings in products ordered by a certain
> company. Along with those values, I'm creating a text box at the end
> of each record that a user may or may not enter in an estimated
> delivery date. If the user does enter in a date I want that row of
> data submitted to a table with that date. First of all I need to check
> to see if the user has entered anything in the text boxes. I was
> trying to go through them with a for next loop using
> document.form.elements.length as my ending count but that did not seem
> to work. Also another problem I am facing is making sure all the
> records on the page are being looked at. I wanted to put my if
> request.form("submitTop") <> "" underneath where my recordset is open,
> but this too does not work.
> So what I need to happen when the submit button is hit is:
> A way to check and see if something is entered in a text box, if it is
> then add that line of data pulled from my first table and the user
> input estimated delivery date value into a new table. I need to make
> sure I go to each record in my list to check to see if anything has
> been entered in the text box.
> Thank you very much. Any help on any little bit of my problem would be
> greatly appreciated!
> Renie83



 
Reply With Quote
 
 
 
 
MDW
Guest
Posts: n/a
 
      07-14-2003
Well, there are a couple of ways to go about doing this.
Few questions, first:

Do all the text boxes in question have the same name?

Are we working with a dynamic number of records, where one
time we could be looking at 2 products, another time we're
looking at 50?

The page w/ the textboxes, I assume it's getting posted or
something to another page. Are all the records being
posted at once, or is there a seperate "Submit" button for
each product?

>-----Original Message-----
>Hi I really am going crazy!
>I'm using VBScript, ASP, and SQL
>My page reminds me of a shopping cart but looking at

shopping cart
>examples has not helped!
>What I have is a page that brings in products ordered by

a certain
>company. Along with those values, I'm creating a text

box at the end
>of each record that a user may or may not enter in an

estimated
>delivery date. If the user does enter in a date I want

that row of
>data submitted to a table with that date. First of all I

need to check
>to see if the user has entered anything in the text

boxes. I was
>trying to go through them with a for next loop using
>document.form.elements.length as my ending count but that

did not seem
>to work. Also another problem I am facing is making sure

all the
>records on the page are being looked at. I wanted to put

my if
>request.form("submitTop") <> "" underneath where my

recordset is open,
>but this too does not work.
>So what I need to happen when the submit button is hit is:
>A way to check and see if something is entered in a text

box, if it is
>then add that line of data pulled from my first table and

the user
>input estimated delivery date value into a new table. I

need to make
>sure I go to each record in my list to check to see if

anything has
>been entered in the text box.
>Thank you very much. Any help on any little bit of my

problem would be
>greatly appreciated!
>Renie83
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does one play a .wav file and then another and then another...? ted.j.conway@gmail.com Javascript 4 01-17-2006 03:28 AM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM
Location element in the Web.config file. Allow System Admin whole directory, allow others specific page Ryan Taylor ASP .Net Security 1 09-09-2004 06:52 PM
how ASP.NET page gets user input from another ASP.NET page?? Matthew Louden ASP .Net 4 11-24-2003 06:59 AM
Passing value from one script on one page to another script on another page. Robert Cohen ASP General 3 07-15-2003 01:46 PM



Advertisments