Click to See Complete Forum and Search --> : Email this page link


may.jobmail2
12-20-2007, 01:53 AM
Hi all,

I would like to insert the link which "email this page link" .

At the main page the user click the "email this page link" link, then open new window and fill up the user name , email , comments..., then send button.

How to do insert the browser address of main page. I dont want to put the fixed browser address. Because my web pages are over 100 hundred.

note : my web pages are .html


Thanks and Regards,
May

TheRave
12-20-2007, 03:12 AM
You will need to use some kind of scripting to send the email. The best way would be with server-side scripting. You should look into php, asp.

may.jobmail2
12-21-2007, 08:46 AM
Hi,
copy these and save as ".html".
you will see the form.
the only problem is "how to put browser link' coding" ???
{{{At the main page the user click the "email this page link" link, then open new window and fill up the user name , email , comments..., then send button.

How to do insert the browser address of main page.}}}
if you can, help me.
Thanks anyway !!

<HTML>
<HEAD>
<TITLE>: Email Link</TITLE>
<META name="resource-type" content="document">
<META name="distribution" content="global">
<META NAME="date" CONTENT="">
<META NAME="description" CONTENT="search page">
<link href="/styles.css" type="text/css" rel="stylesheet">
<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
function initMail(form) {
text = "Interesting Link " + window.location;
form.message.value = "Hi " + form.sendto.value + " (" + form.to.value + "):\n\n"
+ text + "\n\nYour Friend,\n" + form.sendername.value + "(" + form.senderemail.value + ")";
return (form.to.value != "");
}
// End -->
</script>



</head>



<br>

<!--: Email Link--></b>
<!---->

<center>

















<form method=POST action="http://www.abc.com/cgi-bin/email-friend.pl">


















<input type = "hidden" name="fromlink" value="">

<TABLE border=0 cellpadding=4 width=500>
<tr bgcolor=>
<td colspan=2>
<center>
<font color=#FFFFFF><b>Email Link to a Friend</b></font>
</center>
</td>
</TR>

<tr>
<td colspan=2>
<br>
Thank you for taking the time to share our site content with others. Please fill in the blanks below and click Preview.
<br>&nbsp;
</td>
</TR>

<tr>
<TD ALIGN = "left" valign="center">Friend's Name:</td>
<TD><INPUT TYPE = "text" NAME = "name1" value="" SIZE = "40" MAXSIZE = "100"></TD>
</TR>
<tr>
<TD ALIGN = "left" valign="center">Friend's Email:</td>
<TD><INPUT TYPE = "text" NAME = "email1" value="" SIZE = "40" MAXSIZE = "150"></TD>
</TR>

<tr>
<TD ALIGN = "left" valign="center">Your Name:</td>
<TD><INPUT TYPE = "text" NAME = "name2" value="" SIZE = "40" MAXSIZE = "100"></TD>
</TR>
<tr>
<TD ALIGN = "left" valign="center">Your Email:</td>
<TD><INPUT TYPE = "text" NAME = "email2" value="" SIZE = "40" MAXSIZE = "150"></TD>
</TR>
<tr><td align="left">Email a Copy to Yourself:</td>
<td><select name="copysender">
<option value="No" selected>No</option>
<option value="Yes">Yes</option>
</select>
</td></tr>

<tr>
<td colspan=2>
Note (500 character max):
</td></tr>
<tr>
<td colspan=2>
<center>
<textarea name="note" wrap=virtual rows="6" cols="50"></textarea><br>
<br>
<INPUT TYPE = "submit" NAME = "preview" VALUE = "Preview">
</center>
<br>&nbsp;
</td>
</tr>

</TABLE>

</FORM>
</center>
<br><br>




<center>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td height="2" bgcolor="#eeeeee"></td></tr>
<tr><td><br></td></tr>
</table>
</center>

<center>


</center>

<center>