Click to See Complete Forum and Search --> : Form for ecards
I am creating an ecard site. The way I have it set up is to click to send and then the email box comes up with the link for the page the card is on in the body of the email. The person then just addresses the email and sends it.
My question is, I would like to have a message box under the card so people can put in a personal message.
I have no problem with the form and I can type in a message but when I send the email, the message box is empty..
Is there a solution to this problem.
Thank you in advance.
JB
Khalid Ali
09-02-2003, 05:19 PM
is the textbox(message box) part of the form that triggers email client?
if it is then it should send message
post a link to your pages thats always a better choice
Here's the link to the page.
Thank you for your help..
http://www.todancewithangels.com/ecardanniversaryrose.htm
Khalid Ali
09-02-2003, 06:41 PM
this is what you need to do
<form name="form1" action="mailto:?body=http://www.todancewithangels.com/ecardanniversaryrose.htm" method="post" enctype="text/plain">
<!--put rest of the stuff here all other parts including your message box
//-->
</form>
the above should what you are trying.
Thank you, I'll give it a go tomorrow...
I think I did what you said but it still isn't working. Can you have another look.
Thank you
http://www.todancewithangels.com/ecardanniversaryrose.htm
Khalid Ali
09-03-2003, 10:43 AM
Here take a look at this,you will have to implement this into your code.
<script type="text/javascript">
function validate(){
var frm = document.form1;
var body = "Please click below to see your e-card\n"+
"http://www.todancewithangels.com/ecardanniversaryrose.htm\n"+
" message below\r"+frm.the_message.value;
frm.action = "mailto:"+frm.email_address.value+"\?body="+body;
document.form1.submit();
}
</script>
</head>
<body>
<form name="form1" action="" method="post" onsubmit="validate();" enctype="text/plain">
Enter email for recipient:<input type="text" name="email_address"/><br/>
<textarea name="the_message" wrap=virtual rows=4 cols=50></textarea><br/>
<input type="submit" value="Click to Send"></input>
</form>
I hate to be a pest... It still isn't working on my end. Can you test it on your end to see how it does?
Thank you
http://www.todancewithangels.com/ecardanniversaryrose.htm
Khalid Ali
09-03-2003, 12:03 PM
it works it sends the message to the email entered in the text field above..try it your self,onething though,in IE it will not show you the email client,in NS it will
Thank you for all your help.
Khalid Ali
09-03-2003, 12:21 PM
:)
my pleaure...