Click to See Complete Forum and Search --> : form


yunise
02-26-2003, 05:03 AM
any one know how to make pop up mail that fill tha e-mail, title and the information that have filled up after filling up a simple form in java.

i know how to insert the email and title , but how about the infomation that have fill in the form, how it will appear in the e-mail field?

khalidali63
02-26-2003, 09:06 AM
If understand your question correctly,you only need to put emailto;;email in the action attributes value for this to happen.

<form action="emailto:meail@email.com" enctype="text/plain"

will forward all form data to the above email address

Cheers

Khalid

DaiWelsh
02-26-2003, 09:13 AM
I dont think it is very cross-browser compatible but you should be able to set the action of the form to include your content with something like

document.forms.myform.action = "emailto:myemail@email.com?subject=Hello%20Me&body=" + mycontent;

but you may well need to url encode your content to avoid problems with characters like =?&.

HTH,

Dai

yunise
03-05-2003, 03:37 AM
how to add another 2 email address to the "cc:" and "bcc:" section.
and if our form have options (drop down list ).how to isert the value to the body text

besides that if our form have 6 options in check box how to make them stated in the body of email

the script is like this

<SCRIPT language="JavaScript">
<!--
function e_submit(e_add)
{

var e_body = document.e_form.name.value+","+document.e_form.phone.value+;

window.location="mailto:"+e_add+"?body="+e_body;
}
//-->
</SCRIPT>

<P>
<FORM name="e_form">
<p>
<INPUT name="emadd" type="hidden" value="01@hotmail.com.my">
<p>

<p>
<p> Name:
<select name="salution" size="1" id="salution">
<option>Mr.</option>
<option>Miss</option>
<option>Mrs.</option>
<option>Ms.</option>
<option>Dr.</option>
<option>Rev.</option></select>
<input name="name" type="text" id="name3">

<p> Industry :

<input name="checkbox1" type="checkbox" id="checkbox1" value="checkbox" checked>
Accounting
<input name="checkbox2" type="checkbox" id="checkbox2" value="checkbox">
Creative
<input name="checkbox3" type="checkbox" id="checkbox3" value="checkbox">
Education
<input name="checkbox4" type="checkbox" id="checkbox4" value="checkbox">
Finance
<input name="checkbox5" type="checkbox" id="checkbox5" value="checkbox">
Hotel
<input name="checkbox6" type="checkbox" id="checkbox6" value="checkbox">
Law</p>
</p>
<p> Phone no:
<INPUT name="phone" type="text" id="phone">
</p>

<P>

<INPUT name="" TYPE="button" onClick="e_submit(this.form.emadd.value)" onKeyPress="e_submit(this.form.emadd.value)" Value="submit">

</FORM>