Form mailto and diacritical marks ?

D

Dado

With next form I get mail to send, but in a mail I got wrong encoding for
Croatian diacritical marks "ŠÐÈÆŽ".
In a page properties I set Central European (windows) and a rest of page
shows fine. What I need to change to get encoding correctly also in a mail
which form send to me.

<CENTER>
<FORM METHOD=POST ACTION="mailto:someone@$nailmail.com"
ENCTYPE="text/plain">
<INPUT TYPE="text" NAME="username"> : name <BR>
<INPUT TYPE="text" NAME="email"> : email <BR>
comments <BR>
<TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard">
</TEXTAREA>
<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">
<INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="index.html">
<BR>
<INPUT TYPE="submit" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
</FORM>
</CENTER>
<!-- END OF FORM -->

Kako rjesiti problem?

p.s.
this
<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">

also doesn't work. If you know the reason I would like to answer me.
 
M

Martin Jay

Dado <[email protected]> said:
With next form I get mail to send, but in a mail I got wrong encoding for
Croatian diacritical marks "Å ÃÈÆŽ".
In a page properties I set Central European (windows) and a rest of page
shows fine. What I need to change to get encoding correctly also in a mail
which form send to me.

<CENTER>
<FORM METHOD=POST ACTION="mailto:someone@$nailmail.com"
ENCTYPE="text/plain">

This method of sending a form uses the default email software on the
client's machine. Some may not have their email software configured to
send special characters such as the ones you mentioned.

This method of receiving information from a form is quite unreliable,
anyway. :(

You need to 'POST' the form to a scrip on YOUR server so that you can
deal with these special characters.
p.s.
this
<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">

also doesn't work. If you know the reason I would like to answer me.

That is a hidden field included in the form. It can tell the script
that handles the form what page to redirect the web browser to.

But as you're not using a server side script to process form data this
field is ignored.
 
D

Dado

Martin Jay said:
This method of sending a form uses the default email software on the
client's machine. Some may not have their email software configured to
send special characters such as the ones you mentioned.

This method of receiving information from a form is quite unreliable,
anyway. :(

You need to 'POST' the form to a scrip on YOUR server so that you can deal
with these special characters.


That is a hidden field included in the form. It can tell the script that
handles the form what page to redirect the web browser to.

But as you're not using a server side script to process form data this
field is ignored.


I only need a form for an ordering a license for my application. And it is a
test on a free host on a myjavaserver.
So what example you suggest? Simply and which will work on that server.
 
M

Martin Jay

Dado <[email protected]> said:
I only need a form for an ordering a license for my application. And it is a
test on a free host on a myjavaserver.
So what example you suggest? Simply and which will work on that server.

Is that at this place: <http://www.myjavaserver.com/>? I couldn't find
any information there about what they offer. Presumably it's quite a
basic service, which may not offer script hosting.

Fortunately there are plenty of places that do:
<http://www.absolutely-free-hosting.com/>
 
D

Dado

Martin Jay said:
Is that at this place: <http://www.myjavaserver.com/>? I couldn't find
any information there about what they offer. Presumably it's quite a
basic service, which may not offer script hosting.

Fortunately there are plenty of places that do:
<http://www.absolutely-free-hosting.com/>

I choose myjavaserver for testing because I need a Java web starter,
although it gives me only 5MB of space. So, I was thinking, why you can't
suggest me some client side script language like javascript ?
 
J

jojo

Dado said:
I choose myjavaserver for testing because I need a Java web starter,
although it gives me only 5MB of space. So, I was thinking, why you can't
suggest me some client side script language like javascript ?

I suppose he had not given you one because you can *not* transfer any
data to a server-side mail-application with a client side script...
And if you do not any client-side script you can only use client-side
mail, so its the same as the "mailto:"-link...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top