Posted by Steve Pugh on 03/14/06 14:35
"Rebekha Ljoekelsoey" <rebekha.ljoekelsoey@ladt.org> wrote:
>Can I ask for clarification regarding hidden elements in forms and the use
>of the mailto:
Normally the answer is don't use mailto in forms because normally
people are trying to do something stupid like <form
action="mailto:name@server.co.uk">
>I have recently been told that the inclusion of the mailto: will render the
>form inoperative
><input type="hidden" name="recipient" value="mailto:name@server.co.uk">
It might, it might not. The above is perfectly fine HTML. What it does
as part of a form submission is outside the realms of HTML.
>Mailto: in the hidden field shouldn't be there are it makes the form
>inoperable.
That depends entirely on the script that handles the submitted form
data. If the script is expecting an e-mail address then including
mailto: will screw things up. Of course of the script is expecting an
e-mail address and will just send the form submission to that e-mail
address then you have other problems...
>Mailto: should only be used in a normal email link.
And only then with care.
>Your comments would be warmly appreciated
What's the big picture?
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
[Back to original message]
|