/    Sign up×
Community /Pin to ProfileBookmark

Email this page link

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

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@TheRaveDec 20.2007 — 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.
Copy linkTweet thisAlerts:
@may_jobmail2authorDec 21.2007 — 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 + "):nn"

+ text + "nnYour 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>
×

Success!

Help @may_jobmail2 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...