Forum Moderators: open

Message Too Old, No Replies

Passing the page title to another page

         

Headed North

6:47 pm on Dec 31, 2005 (gmt 0)

10+ Year Member



I'm setting up a service on a new website that will allow people to email a page (the url) to another person if they think they might be interested. I want to send the page title in the <head> to the person as well so they know what the page is about. How can I pass the page title to another page where the person would fill out the form and hit submit to send the url and page title via email to their friend?

pageoneresults

7:10 pm on Dec 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is the <title></title> element a variable?

Headed North

10:45 pm on Dec 31, 2005 (gmt 0)

10+ Year Member



I've just set up one page so far so I could make it a variable.

pageoneresults

2:10 am on Jan 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Okay, since this is not my main forte, I can only guess. But, I do believe you need to take that variable and pass it to the email confirmation page and to the confirmation email that is sent. I'm going to assume that you are familiar with variables and get the idea?

I use a program called ASPEmail to perform email functions from web forms. In my confirmation script, I might have something like this to bring the <title> element variable into the email being sent to the recipient...

Mailer.Subject = request.form("TitleElement")

And then I might have something like this written to the body of the email message...

Mailer.BodyText = strMsgHeader & vbCrLf & strRecipName & "," & vbCrLf & vbCrLf & strYourName & " would like you to review this page at the ..." & vbCrLf & vbCrLf & "Page Link: " & strURL & vbCrLf & vbCrLf & "Comments: " & strComments

There's more to it than just the above but this should give you an idea. If not, do a search in Google for email this page scripts using asp. You'll find plenty of working examples.