Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail notice URL too long

Status
Not open for further replies.

Ladyborg

Programmer
May 11, 2002
208
US
I have a forum to which people can opt to receive messages when new replies are posted. In the posting message there are hidden fields which send emails.

PROBLEM: The entire URL of the forum and message is sent and it is too long, gets chopped off and people click on it only to go nowhere. It's probably an easy fix but I'm not experienced enough to know it. :eek:(

I'd like it to say something like CLICK HERE TO VIEW REPLY or as a hyperlink to the entire URL of the post.

Any help would be greatly appreciated, here's the code:

<input type=&quot;hidden&quot; name=&quot;MAIL_BODY&quot; value=&quot;Hello <%=(rsFormReply.Fields.Item(&quot;NAME&quot;).Value)%>! Your post <%=(rsFormReply.Fields.Item(&quot;MSG_SUBJECT&quot;).Value)%> has been replied. Please read it at <%= myURL %>/forums/message.asp?r=forums&t=<%=(rsFormReply.Fields.Item(&quot;FOR_NAME&quot;).Value)%>&i=<%=(rsFormReply.Fields.Item(&quot;MSG_ID&quot;).Value)%>&quot;>
ladyborg64x64.gif
Ladyborg
&quot;Many of life's failures are people who did not realize how close they were to success when they gave up.&quot; [Thomas A. Edison]
 

aside from the code, list examples of the url in question...

too long...?

- g
 
it sounds more like you have a strange character in your url that the browser cant handle. have you tried changing characters like a space into 20% ? I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
No, the error is this. The URL in the email which points to the posting is too long and part of it gets chopped up onto the following line, like this:

pes&i=94

That's why I wanted to replace the entire URL in the message with just a short &quot;click here&quot; hyperlink.
ladyborg64x64.gif
Ladyborg
&quot;Many of life's failures are people who did not realize how close they were to success when they gave up.&quot; [Thomas A. Edison]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top