Forum Moderators: open
The info filled up either on a form prior or with the e-mail body as a requirement would be great.
I have written this form so far but unfortunately I require an ASP to run form. If I can get it in HTML and once I open the e-mail to send all of this info is in the body of e-mail then it would be great.
I am fairly new at this and the vehicle I have touse to publish this is extremely restricted and I am unable to use ASP.
Thank you
See code for example:
<body>
<form name="input" action="html_form_action.asp" method="get">
<input type="radio" name="Sex" value="Male" checked="checked">
Male:
<br>
<input type="radio" name="Sex" value="Female">
Female:
<br>
</form>
<form name="input" action="html_form_action.asp" method="get">
Ident #
<input type="text" name="ident" value="" size="20"><br>
First name
<input type="text" name="firstname" value="" size="20"><br>
Last name
<input type="text" name="lastname" value="" size="20"><br>
Initials
<input type="text" name="initials" value="" size="20"><br>
Position Title
<input type="text" name="position" value="" size="20"><br>
Phone #
<input type="text" name="Phone" value="" size="20"><br>
Email
<input type="text" name="Email" value="" size="20"><br>
<form action="mailto:abcd@example.copm?cc=efgh@example.com&subject=Course registration requestbody=You have a course loading request to verify" method="post" enctype="text/plain">
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
[edited by: incrediBILL at 1:12 pm (utc) on Nov. 26, 2009]
[edit reason] Use example.com only please [/edit]
Simply put, you have two form actions:
<form name="input" action="html_form_action.asp" method="get">
<form action="mailto:abcd@example.com?cc=efgh@example.com&subject=Course registration requestbody=You have a course loading request to verify" method="post" enctype="text/plain">
The short answer is, remove the first and replace it with the second. You will likely also have to change the method to get, (method="get",) and remove the "body" from the query string.
<form action="mailto:abcd@example.com?cc=efgh@example.com&subject=Course+registration+request" method="get" enctype="text/plain">
However, you won't be very pleased with the results. This sends an unencoded string to the recipient, so you are likely to get something like
first_name=John&last_name=Doe&email=some-email@somewere.com&...... (etc.)
This is what a server side processor does, decodes the input and sends it in a sensible format. You won't be able to do this with HTML, you will need some sort of server-side processor to make this work, in Perl, PHP, .asp, which you've already said you cannot.
[edited by: incrediBILL at 1:12 pm (utc) on Nov. 26, 2009]
[edit reason] Use example.com only please. that was a live domain [/edit]