Using variable in Yahoo Calendar url link

Anybody has experience using the following link to add an event to the
Yahoo Calendar?

This works. But when I try to replace value of a field such as title
with <%= title %> it either log me into or complains of url
format issue. I believe this is a Yahoo issue but I have not gotten a
response from the Yahoo board yet. Just wonder if anybody on this forum
knows the solution. Thanks!

Have a look at the source of the page in your browser and see what url
you are generating (View, Page Source in FF for example). The browser
does not know that you are generating the url using <%= ... %> so if
you end up with the same text it must work. If it complaining of a url
format issue then you have probably got it wrong.