Click to See Complete Forum and Search --> : Any Alternative to Input Type="Submit"?


BSquared18
05-08-2003, 03:13 PM
I used the following code to have users submit a client-side form via e-mail:

input type="submit"

However, during beta tests one user tried sending the form from their office without success. An e-mail was sent but without the .ATT attachment that contains the form's data.

Is there a more robust client-side code to use to e-mail forms?

Thanks,

Bill B.

Jona
05-08-2003, 03:23 PM
<form action="" onsubmit="this.action='mailto:user@name.com&subject='+this.subject.value+'&body='+this.message.value">

Assuming that above you have two fields in the same form:

<input type='text' name='subject'>
<input type='text' name='message'>

BSquared18
05-08-2003, 03:41 PM
Jona,

The form being sent is huge: many spaces where entries need to be made. If I'm understanding your comment correctly, I would need something like

'+this.subject.value+'&body='+this.message.value">

for each line item. That would be unacceptably difficult, given the complexity of the form.

Is the input type="submit" code known to have problems that your suggested code solves? Are there any other alternatives that would be more practical for such a complex form?

Thanks!

Bill B.

Jona
05-08-2003, 03:46 PM
Oh.... In that case, you'll have to use an attachment. And, unfortunately, all I know is that one of the users did not receive the attachement. Therefore, I am unsure what the actual problem could be.

Sorry.

nkaisare
05-08-2003, 04:46 PM
Client-side is never robust. Why don't you go with server-side instead?