iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old July 23rd, 2005, 06:11 PM   #1
New Member
 

Join Date: Jul 2005
Location: Reading
Age: 45
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 AndyP is on a distinguished road
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.
AndyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2005, 10:50 PM   #2
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 114 Webforumz Staff is on a distinguished road
Are you using mailto: for the email method?
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2005, 07:11 AM   #3
New Member
 

Join Date: Jul 2005
Location: Reading
Age: 45
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 AndyP is on a distinguished road
Quote:
Originally Posted by Catalyst
Are you using mailto: for the email method?

No the email is being sent using a CDOSYS script.
AndyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2005, 07:52 AM   #4
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 114 Webforumz Staff is on a distinguished road
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?
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2005, 08:14 AM   #5
New Member
 

Join Date: Jul 2005
Location: Reading
Age: 45
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 AndyP is on a distinguished road
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?
AndyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2005, 08:33 AM   #6
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,133
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
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 - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 25th, 2005, 06:28 AM   #7
New Member
 

Join Date: Jul 2005
Location: Reading
Age: 45
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 AndyP is on a distinguished road
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?
AndyP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 25th, 2005, 01:25 PM   #8
Highly Reputable Member
 
benbacardi's Avatar
 

Join Date: Feb 2004
Location: United Kingdom
Age: 21
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbacardi will become famous soon enough
just placing the code for one straight after the code for the other...
benbacardi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 7 October 25th, 2007 06:03 AM
Unable to multiply without pressing button codeexplorer JavaScript 2 October 1st, 2007 08:25 AM
Does a submit button have to be in the form itself Sylvester HTML, XHTML and CSS 1 April 17th, 2007 09:14 AM
Form Submit button Help!!! Aaron1988 HTML, XHTML and CSS 2 November 25th, 2006 10:51 AM
MouseOver for Form Submit Button image? masonbarge JavaScript 4 October 31st, 2006 08:58 AM


Search Engine Optimization by vBSEO 3.2.0 RC8