Two form actions on pressing submit button?

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 23rd, 2005, 21:11
SuperMember

SuperMember
Join Date: Jul 2005
Location: Reading
Age: 44
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Jul 24th, 2005, 01:50
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Are you using mailto: for the email method?
Reply With Quote
  #3 (permalink)  
Old Jul 24th, 2005, 10:11
SuperMember

SuperMember
Join Date: Jul 2005
Location: Reading
Age: 44
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Catalyst
Are you using mailto: for the email method?

No the email is being sent using a CDOSYS script.
Reply With Quote
  #4 (permalink)  
Old Jul 24th, 2005, 10:52
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #5 (permalink)  
Old Jul 24th, 2005, 11:14
SuperMember

SuperMember
Join Date: Jul 2005
Location: Reading
Age: 44
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Catalyst
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?
No I'm not getting an error.

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?
Reply With Quote
  #6 (permalink)  
Old Jul 24th, 2005, 11:33
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
Reply With Quote
  #7 (permalink)  
Old Jul 25th, 2005, 09:28
SuperMember

SuperMember
Join Date: Jul 2005
Location: Reading
Age: 44
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Catalyst
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?
Can you please help me on this. How do I go about stacking the scripts as you mention?
Reply With Quote
  #8 (permalink)  
Old Jul 25th, 2005, 16:25
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
just placing the code for one straight after the code for the other...
Reply With Quote
Reply

Tags
two, form, actions, pressing, submit, button

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 On

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


All times are GMT. The time now is 21:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43