PDA

View Full Version : Why won't this page send using a mailto?


reptilemart
08-12-2002, 10:44 AM
Hello,

I really need some help with the following problem. It is the last problem with the site (all others have been repaired) and the only thing stopping me from publishing the site.

I am using a Javascript shopping cart to control the shopping features of the site, however the final form before order submission retreives data from previous html pages and loads the data into a table (using cookies). Under this preloaded table I have a form which needs to be filled out.

The problem is that whenever I hit the submit button, it submits the part of the form that needs to be filled out (shipping and Credit Card details) and not the actual order (pre-loaded from other pages within the site, using cookies). I understand why this is happening, and believe the reason is that the preloaded cookie information is displayed outside of the form tags. Therefore the form action has no effect on it. I have tried to out the cookie retrieving script inside the form tags, but it doesn't work either.
I have been searching for help and information on the Internet for quite some time, however considering my low competency in JS, and lack of help, I have not been able to solve the problem.

This is the part of the code that controls the form and mailto pieces:

This is the cookie retreiving script, from which I need to send the information along the form below it to myself using a mailto.

<NOBR>
<SCRIPT>
GetFromCart();
</SCRIPT>
</NOBR>


This is the form action:

<form action="mailto:reptilemart@optusnet.com.au?subject=CustomerOrder" method="POST" enctype="Text/Plain" name="Customer Order" target=">


Any help with the website would be greatly appreciated.
You can find the testsite at:

http://members.optushome.com.au/roeleven/testsite

p.s. don't worry I plan on adding SSL to the submission page.



Many thanks in advance,

Peter.

justame
08-12-2002, 07:26 PM
rep...
one thing /me just a sees® wrong in thisss line???
<form action="mailto:reptilemart@optusnet.com.au?subject=CustomerOrder"
method="POST" enctype="Text/Plain" name="Customer Order" target=">

ummm youre missing the 'second' ..."... in the target=""> thattt could be just a causing® some probs tooo...:O(((