Advertisement

05.05.2008 at 01:26PM PDT, ID: 23377665
[x]
Attachment Details

Passing link through query string

Asked by judo2000 in Scripting Languages, Web Languages/Standards, Active Server Pages (ASP)

Tags: asp, vbscript

I have an application that allows me to email all the members of my websites.  When the users submits the form they go to a review page to show them what the message will look like. Then if they hit send the email is sent.  I tried to add the subject to a session variable but when the click send email and the page is reloaded the session is cleared. Then I tried to send it through a querystring and it works except when I put a hyperlink in the message body.  It messes up the link that I am using to "send email". I don't know why the session doesn't work I've done it the same way on other pages and it works fine.

Thanks

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
<%									if request.QueryString("action")="previewMessage" THEN
     Private Function FixUp(ByVal TheText)
          FixUp = Replace(Replace(TheText,"'","''"),Chr(34),Chr(34))    	     End Function
										     subject=Trim(request.Form("mailSubject"))
     myText=Trim(request.Form("myTextarea"))					%>
										<span class="headSection">Preview Your Message</span><br>
This is how your message will look:<br>
<table width="80%" cellpadding="0" cellspacing="0" border="1" bgcolor="#FFFFFF">
<tr><td colspan="3" class="tableHead" align="center"><%=subject%></td>
</tr><tr>
<td colspan="3" class="bodyTxt">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td rowspan="2" valign="top"><img src="http://www.tellyourtestimony.com/images/TYT7.jpg" width="110" height="114" border="0" alt=""></td>
<td width="465" valign="top"><img src="http://www.tellyourtestimony.com/images/titleTop_r1_c2.gif" width="465" height="65" border="0" alt=""></td>
</tr><tr><td colspan="2" valign="top"><img src="http://www.tellyourtestimony.com/images/titleTop_r2_c2.gif" width="672" height="35" border="0" alt=""></td>
</tr><tr><td colspan="2" width="100%">
<table width="100%" cellpadding="5" cellspacing="0" border="1">
<tr><td width="16%" align="center" valign="top" bgcolor="#4B5A7B">
<br>
<a href="http://www.tellyourtestimony.com" target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF"><b>Tell Your Testimony.com</b></font></a>
<br><br>
<a href="http://search.tellyourtestimony.com" target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF"><b>Search Testimonies</b></font></a>
<br><br>
<a href="http://www.tellyourtestimony.com/bibleStudy.asp" 1target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF"><b>Bible Study</b></font></a>
<br><br>
<a href="http://refer.tellyourtestimony.com" target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF"><b>Refer Friends</b></font></a>
<br><br>
<a href="http://mpministry.tellyourtestimony.com" target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF"><b>Marketplace Ministry</b></font></a>
</td><td width="84%" valign="top"><%=myText%></td>
</tr></table>
</td></tr>
<tr><td colspan="2">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td width="2%">&nbsp;</td>
<td align="center" valign="top" class="footer">                                                                           <a href="http://www.tellyourtestimony.com/home.asp"><span class="footer">Home</span></a>                                                                        | <a href="http://search.tellyourtestimony.com"><span clas="footer">Search Testimonies</span></a>                                                                            | <a href="http://comments.tellyourtestimony.com"><span class="footer">Comments</span></a>                                                                            | <a href="http://refer.tellyourtestimony.com"><span class="footer">Refer Friends</span></a>                                                                            | <a href="mailto:support@tellyourtestimony.com"><span class="footer">Contact Us</span></a>                                                                            | <a href="http://advertising.tellyourtestimony.com"><span class="footer">Advertising</span></a>                                                                            | <a href="http://report.tellyourtestimony.com/?myUserID=<%=request.Cookies("userID")%>&contentID=<%=userID%>"><span class="footer">Report Abuse</span></a>                                                                            <br>                                                                            <a href="http://www.tellyourtestimony.com"><img src="http://www.tellyourtestimony.com/images/testimony_footer.gif" width="295" height="80" border="0" alt="Tellyourtestimony.com"></a><br>                                                                            This site is protected by the copyright laws of the United States of America and Internationally<br>                                                                            &copy; 2008, Legacy IGE LLC                                                                        </td>                                                                        <td width="2%">&nbsp;</td>                                                                    </tr>
</table>
</td></tr>
</table>
</td></tr>
<tr><td width="46%" height="28" align="right" class="pgNav"><a href="send_email.asp?action=sendEmail&subject=<%=FixUp(subject)%>&myText=<%=FixUp(myText)%>" class="pgNav">Send Email</a></td>
<td width="2%">&nbsp;</td>
<td width="46%" class="pgNav" align="left"><a href="index.asp" class="pgNav">Edit Email</a></td>
</tr>
</table>									<%										elseif request.QueryString("action")="sendEmail" THEN
...
...
[+][-]05.05.2008 at 02:49PM PDT, ID: 21503305

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 02:52PM PDT, ID: 21503317

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 10:29PM PDT, ID: 21504939

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Scripting Languages, Web Languages/Standards, Active Server Pages (ASP)
Tags: asp, vbscript
Sign Up Now!
Solution Provided By: DarkHill
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.05.2008 at 10:52PM PDT, ID: 21505002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 11:36PM PDT, ID: 21505145

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 08:34AM PDT, ID: 21508199

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 08:59AM PDT, ID: 21508424

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 09:06AM PDT, ID: 21508473

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 09:33AM PDT, ID: 21508749

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 02:14PM PDT, ID: 21511148

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 10:12PM PDT, ID: 21513313

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628