ignore that, I see it's outside the for construct.
Main Topics
Browse All TopicsHello All;
(Confusing title.)
OK.
Download the file, and run the insert.asp?amt=2 (or any number of fields that you want)
In the Email and verfity email.
Type in Differernt Email address's.
This will cause it to show you an error page, letting you know that the address do not match.
Now, the record is inserted into the Database still, but with NotMatch in the [Status] Field.
In the Error/Correction page, it does not display the fields properly.
And it has the same amount of buttons as there are records.
I need it to show "1" Button no matter how many records.
(Like a Form suppose to do)
I think once you run it, you will understand it better then I can explain it to you.
Thanks All.
Carrzkiss
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello hielo
Hope you are doing well this 4th of July Weekend.
OK.
The i=i-1
Is used to Subtract the last number, that is why it is there.
-------
Save what DOES NOT MATCH.
OK. Let me explain this one to you a little bit.
This whole process looks at the field [Status]
If [NotMatch] then it will insert the record as [NotMatch]
Is the address's match it inserts as: [Status]=Matched
OK.
It looks through the records entered from there (Script not provided here as it works)
And sends out an email to all that are [Matched]
And the ones that are not Matched, will be sitting in limbo until they are Updated
From: [NotMatch]
to: [Matched]
I know that this may not be the way most would work this, but it is there incase
The person inserting the multiple records decides to leave and close out without
Finishing what s/he started.
Follow me?
This way once they come back, they can open the page up with the [NotMatch] Query
And complete the list.
That is why it needs to be inserted.
Hope that makes since to you, as it was an idea that came to me while I was trying to sleep.
And they are usuall my best ones, They better be, as I am loosing slept because of them :)
Going to test your code out now.
And thanks for the assistance so far.
Hope it works, as this is the last MAJOR addon to the site.
Carrzkiss
OK, if I understood correctly, you are trying to maintain values across sessions/visits. However, one of the issues not addressed in your post is that if I entered:
a@b.com and b@a.com
then I will see Not Matched and they will be inserted in the DB. If tomorrow I come back and enter those same values, then you db will have those values inserted again!
Not sure if this is acceptable, but if not, you need to query the db first to make sure they are not there already.
When you come back, you will be faced with the information that is already insterted into the database.
And also, I have code that (Not shown here)
That looks to see if the record exist, and if it does not, insert the record
If if does exist, then it lets you know that it is there, and to move on to the next one.
Thanks.
I had to tend to some issues, and now back.
So getting ready to test what you have here.
I need a fresh pair of eyes please.
If I put the form fields outside of
if i mod 1 = 0 then
It will show up, But will not count the fields.
If I put it inside (Like the code below) then their fields are not shown and the only thing that you get is a button.
Can you please have a look at it, and see if you can see where I have gone wrong?
-----------
The Insert of:
Good Emails
&
Bad Emails
Are working great, I just have to do the Update, as you can see in the form below.
Thanks Hielo.
Carrzkiss
Had to do some changes in the code.
Works the same as it did before, still cannot get the Fields to show up
The fields that I am referring to are the ones that will show the
incorrect email address's so they can be edited.
Anyway.
Going to work on this a little longer this evening and see if I can figure out what is stopping it.
Have a good one Hielo.
Carrzkiss
>>If I put it inside (Like the code below) then their fields are not shown and the only thing that you get is a button.
I think that is because when you do the update, you are changing the status FROM 'NotMatch' to '', so when the query is done the next time around, no matches are found because the status is no longer 'NotMatch'
>>If I put the form fields outside of
if i mod 1 = 0 then
It will show up, But will not count the fields.
Don't know what you mean by "But will not count the fields.", but if you move it outside the outermost For...Next, I think it will do what you expect (I think).
OK.
Got it fixed, had to move the NEXT to the lowest part of the statement.
Above the button. Now it displays the information.
BUT
It is duplicating it,
2 records are inserted as
Status='NotMatch'
1 record is inserted for
Status='NotActive'
It reads the Fields correctly, BUT duplicates them.
It was doing it Triple, and I fixed that, now it is duplicating and I cannot seem to find where
It is happening at.
But, this is a working code, and records to do.
And they do count
ConfirmEmail_<%=i%>
ConfirmEmail_1 exc......
So that is taken care of.
Just need some fresh eyes to help me get rid of the duplicating.
Thanks again Hielo.
Carrzkiss
It looks like I might have to ditch this idea.
And just hope that people enter the information correctly the first time.
------
The last code that I posted above will duplicate a single records.
IF ONLY there is 2 records matching the Status='NotMatch'
BUT IF
1 Record is: Status='NotMatch'
1 Record is: Status='NotActive'
THEN nothing is shown.
BUT IF
2 Record is: Status='NotMatch'
1 Record is: Status='NotActive'
It will Duplicate the 'NotMatch' Records.
This is getting weird.
And I have ran out of idea's.
So, until it can be resolved, I am going to temporaily remove it from the site.
And add it back in when it is fixed.
If you have any idea's please send them along.
Carrzkiss
The explanation you posted above (ID:24781043) is relevant to what your initial implementation. Basically, it's "technical". What I would like is for you to give a description of your application. What is your ultimate goal?
I find the "Deactivate" button very confusing because when I do "insert.asp?amt=2" and the email addresses do not match, then you shouldn't be allowed to "Deactivate" something that shouldn't exist to begin with. To clarify, the way I understand this, a record with "NotMatch" is like saying "Doesn't exists yet" - or at least that is what makes sense to me.
To aggravate matters, your other status is "NotActive", so how can you "Deactivate" something that is not active? Then again, I am thinking of deactivating an account, not sure what "Deactivate" means to you.
Again, what is the purpose of your application? Don't explain it to me in technical terms (since clearly the technical implementation is not working out for you). Imagine I am NOT a programmer, and explain to me what you are trying to do.
<"Deactivate"> was mis-named for this example here.
So pay that no never mind.
Lets say you have
5 sets of Fields
FName, LName, Email
OK.
Now, when you submit all 5 fields in inserts into the database.
BUT, what if you mis-type one of the email address's?
SO.
We do a <Form> Field set like this
FName, LName, Email, VerifyEmail
Now.
if strEmail <> strVerifyEmail then
Do not match
Else
Insert the records.
---------------
So, it is identical as what I have in the demo when run.
If the emails match insert them with
match -----> Status="NotActive"
Dont match -----> Status='NotMatch'
---------
Pretty straight forward, as I thought my body of this post was.
Insert Multiple Records with the exception OF.... Being able to change the information when it is wrong.
I do not know how else to explain, it is as it is.
==========================
>>(since clearly the technical implementation is not working out for you).
What exactly do you mean by this?
I explained it to you, none of the information supplied here is in any form of "technical"
Maybe a little "Over- Explained" But nothing that I have written here is Technical.
So, I am a little taken back on that remark.
==========================
If you still do not understand it, let me know, and we can close this one out.
As I have already removed it from the project, and on doing a simple
1 email
Form.
Let me know.
Carrzkiss
Is this an account management application or an account creation application?
Consider this: if you type insert.asp?amt=1, one row of fields will be generated (and the user intends to enter test@company.com), but let's say that there were 3 previous entries in the db, one of which is test@company.com. Of course, you don't know ahead of time that the user intended to enter test@company.com, so should insert.asp first find out what is already "NotMatch" in the db AND additionally supply 1 empty row (due to amt=1) so that user may fix all previous "bad entries" and additionally enter any new one?
OK.
amt=1 (or) whatever.
That is a payment system, once the link draws back to the page.
We read the String, and we create the number of rows needed according to the Query.
So
amt=1
Then enter 1 Set of Form Fields
amt=50
Then create a Form with 50-sets of fields, to create 50 New records.
And these records get inserted.
Now.
This program it is "Highly Unlikely" that anyone will be entering a duplicate email address.
There are several reason's to that fact, BUT, in case, it need to check if the record exist
And then move on to the next, and display
These records Exist, and let the user know.
(Link to open question for the IF Record Exist in Multiple Insert
http://www.experts-exchang
Let me know if you need to know anything else.
The other link is a TOP PRIORITY, so if you could assist on that one, that would be create.
This issue for this post, can be added in later on, but the link above needs to be tended to
As soon as humanly (or computerly) possible.
Carrzkiss
Business Accounts
Answer for Membership
by: hieloPosted on 2009-07-05 at 11:29:56ID: 24780831
I did not try your script, but in dynamic.asp you have: "))
row=CInt(Request.Form("row
For n=1 to row
So in insert.asp
i=i-1
should be plus, NOT minus:
i=i+1