If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Cdonts Big Help !

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 23:47
luisymary luisymary is offline
Registered User
 
Join Date: Jan 2004
Posts: 10
Cdonts Big Help !

I need someone to please check the attachment code to see if it is working. I have been trying to make to work and still can't. Someone tested and told me that is was working, but when I try to run it it does not even display the error messages that are in the code.

I really need someone who could take a few minutes and help me to get this thing runnig. The send request to, is a drop down menu from a recordset of a table who got all the emails and names the user is supposed to select to send the request information. This had run before but the message came with no data of the request.

I really would appreciate some help.

Thanks.
Attached Files
File Type: zip send_request_form.zip (8.0 KB, 53 views)
Reply With Quote
  #2 (permalink)  
Old 02-17-04, 00:08
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
should line 352 be

IF(errCheck = 1)THEN

not

IF(errCheck = -1)THEN

being that you have said in line 214

errCheck = -1 'reset the error checking flag -1=no error, 1=error

????
Reply With Quote
  #3 (permalink)  
Old 02-17-04, 00:11
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
also

you have line 211 saying

If Trim(Request.Form("submit")) <> "" Then

but line 1107 has your button called submit2
Reply With Quote
  #4 (permalink)  
Old 02-18-04, 09:17
luisymary luisymary is offline
Registered User
 
Join Date: Jan 2004
Posts: 10
Sending with no information

Thanks for your help, it really help.

Now I got a problem, the form is sending but without the information only the HTML but no info from the user. I was wondering; Do I have to declare variables for the information from the recordset? If it is yes, where sould I start declaring them and how?

PS: The info that is not sending is the one from the table from a recordset.

Thanks.


Quote:
Originally posted by rokslide
also

you have line 211 saying

If Trim(Request.Form("submit")) <> "" Then

but line 1107 has your button called submit2
Attached Files
File Type: zip new folder.zip (6.9 KB, 25 views)
Reply With Quote
  #5 (permalink)  
Old 02-18-04, 18:34
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
so you are saying for example....
Code:
strMessage = strMessage & "<br>City: "&city
produces
Code:
<br>City:
but nothing else?

If this is what you mean (and having looked at the code I think it is) the problem is that you have not set any value for the city variable.

When you get a recordset it doesn't automagically assign the values int he recordset to anything, you need to do that yourself. So in this case you would want something like
Code:
city = rsUserinfo("city")
alternatively you could use the recordset values directly, like this
Code:
strMessage = strMessage & "<br>City: " & rsUserinfo("city")
HTH
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On