This topic is locked

Customization

1/16/2009 2:07:47 PM
ASPRunnerPro General questions
S
srikanth author

hi i use asp runner 6.0 build 766...

i have 4 fields From dat is a text box,First name,Last name is a custom expression multiline drop down ,Message is a text area...in the events part after record added i have built a event to post the added values to a different url,the data posted looks smethng like this
From is From

To is First name,Last name

Message is Message
now in the TO part if the user selects 3 names

In the Message part types in his message like say "Hi #name Happy New Year"

i want all the selected names under the TO fields to replace #name.....hence the end result looks like this

Hi 1st name Happy New Year

Hi 2nd name Happy New Year

Hi 3rd name Happy New Year

I want this event to take place before records gets saved

J
Jane 1/20/2009

Hi,
in general you need to parse entered value and replace each value separately.

Here is a helpful link with VB string functions:

http://www.w3schools.com/vbscript/vbscript...ions.asp#string