On 2009-01-06 09:20, Geoff Cox wrote:
> On Tue, 30 Aug 2005 14:25:14 GMT, Geoff Cox
> <geoff.cox.RemoveThis@notquitecorrectfreeuk.com> wrote:
Hm, blast from the past
>>A button would be clicked to move to the next question. At this point
>>the slider value goes into an array.
>>
>>After the last question all the slider values from the array are sent
>>to me via email using the CGI/form approach.
>>
>>Any ideas please?! I have found code to create the slider but I'm not
>>clear how to get the values into the form and then to me by email..
> no responses so far!
Wait a minute, let me get this straight. You've managed to implement (or
add) a slider control, but for the last 3.5 years you've been working on
submitting the form?
Assuming that you can read the value from the slider when the "next"
button is clicked, just push() it to a global array from the click
handler. Give your form a hidden field, and fill it when you display the
form after the last question; for example:
document.forms[0].elements["myHiddenField"].value =
myGlobalArray.join("~");
Then split the values on the server side. JS can't send e-mail by itself
(usually). Some user agents allow posting to mailto:-URLs, but that's
unreliable at best. You'll need to read the submitted values in the CGI
and send the mail from there.
I suppose there's more to it, or this wouldn't have taken you 3+ years,
but I can't see anything else in your description.
- Conrad