This is a discussion on "Two form actions on pressing submit button?" within the Web Page Design section. This forum, and the thread "Two form actions on pressing submit button? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Two form actions on pressing submit button?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Two form actions on pressing submit button?
Hope this is in the correct section - if not feel free to move it to the appropriate one.
Can this be done? I need to create a form whereby one pressing the submit button the form then carries out TWO actions at the same time. If you go to www.skirmishessex.co.uk/contactus.asp and fill in the form I then need to transfer all the data to the database, and then automatically send all the data back to me in an email. I can get the form to transfer all the data to the database - no problem. I can get the form to send all the data to me in an email - no problem. BUT NOT AT THE SAME TIME To get either to work, I have to remove all the code from the other. Does anyone know of any code where you can carry out multi form action in the same form by pressing one submit button. Or is there a Dreamweaver extention that will do the job? Hope that all makes sense. PLEASE HELP THIS IS DRIVING ME MAD. |
|
|
|
|||
|
Are you using mailto: for the email method?
|
|
|||
|
Quote:
No the email is being sent using a CDOSYS script. |
|
|||
|
Shouldn't be any problem stacking the scripts on top of each other then. I do a db store plus email all the time.
Are you getting an error or something? |
|
|||
|
Quote:
The way I've currently got the code for the form written it just adds the data to the database, but doesn't send the email. Please see code below: <%=MM_editAction%> = server side code that triggers the datbase to be updated post.asp = The page that contains all the CDOSYS code -- <form action="<%=MM_editAction%>" "post.asp" method="POST" name="formadd" id="formadd" onSubmit="MM_validateForm('firstname','','R','last name','','R','landline','','R');return document.MM_returnValue"> -- What have I done wrong, and how do I stack scripts as you suggest? |
|
||||
|
I think you will personally find this a monumental undertaking.
The problem (correct me if I'm wrong) is that you do not 'know' any ASP. You are not even a beginner as you have not (yet) made a decision to learn ASP. You are using Macromedia products to build your code for you, and as such you will never really learn much. ASP Code building tools are fine and dandy to speed up the process, but I never recommend them until you know ASP really well. That way when things go wrong, you can sort them out. In parallel you can also accomplish things that your code building tool will not allow you to do (such as this problem you are facing). I would highly recommend you purchase a good ASP book and crack on with learning some of the basics. Conversly, I may be way, way of the mark here and I apologise in advance if I have judged your situation wrong... I think it's a combination of your use of code builders and the way you wanted to tackle this issue with two submit locations that leads me to believe you are not a coder. If you are looking to learn ASP, let us know and we can help you out and point you in the right direction. If you are just wishing to stick to code building tools, then I think you'll have to learn their use to an advanced level to solve this particular task. I hope my honesty has not offended you.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Quote:
|
![]() |
| Tags |
| two, form, actions, pressing, submit, button |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] large radio button form submit | chriscant | JavaScript Forum | 7 | Oct 25th, 2007 09:03 |
| Unable to multiply without pressing button | codeexplorer | JavaScript Forum | 2 | Oct 1st, 2007 11:25 |
| Does a submit button have to be in the form itself | Sylvester | Web Page Design | 1 | Apr 17th, 2007 12:14 |
| Form Submit button Help!!! | Aaron1988 | Web Page Design | 2 | Nov 25th, 2006 13:51 |
| MouseOver for Form Submit Button image? | masonbarge | JavaScript Forum | 4 | Oct 31st, 2006 11:58 |