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 > insert and delete

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-04, 22:49
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
Lightbulb insert and delete

I'm trying to do 2 transaction in the same page. I'm using 2 form. Form1 is for insert record in table and form2 is to delete the data that retrieve in the page. I'm using dreamweaver to code it. The insert statement done but the delete statement from form2 not work but when I run the page there is no error.

I attach my coding for your info. If somebody can help me solve this problem, it's a happy day for me...
Attached Files
File Type: doc insertdelete.doc (44.0 KB, 49 views)
Reply With Quote
  #2 (permalink)  
Old 04-22-04, 23:19
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
How are you submitting your second form because from the looks of the file attached it can't be submitted..... if it can't be submitted then the values will never be available for requesting...
Reply With Quote
  #3 (permalink)  
Old 04-22-04, 23:27
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Try the attached
Attached Files
File Type: txt fixed.txt (7.7 KB, 36 views)
Reply With Quote
  #4 (permalink)  
Old 04-25-04, 20:54
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
more detail

Quote:
Originally Posted by rokslide
Try the attached
Thank q for your reply. It is not what I mean. What I want is the 2 transaction done at the same time. When the user click the Sokong button both insert and delete statement take place.
The senario is retrieve data form table A after user click Sokong button the data will be insert in table B and the retrieving data will be delete in table A.

Can it be done....
Reply With Quote
  #5 (permalink)  
Old 04-26-04, 22:53
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Some more like this

Check the attached, should be basically what you want
Attached Files
File Type: txt fixed.txt (7.3 KB, 38 views)
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