Ask a Question related to Dreamweaver AppDev, Design and Development.
-
TIMLORI #1
& in a string to pass through url param
I am trying to add a list/menu in DW2004, and for each option I need to pass
url paramerters the problem I am having is concantinating & in a string
example: <option value='<%=(Recordset1.Fields.Item('MLSNum').Value) &
'&custid=16'%>'><%=(Recordset1.Fields.Item('To ur2Name').Value)%></option>
It displays jibberish in browser where ever the & or = is in a string.
Example:
[url]http://360vegastour.com/vtviewer.asp?mls=460821%26custid%3D16&Submit=V iew[/url]
Thank You in advance
TIMLORI Guest
-
Why can I pass a string, but not a date?
I have this custom component that at the moment just repeats the passed in value. It works if I pass in a string, but if I pass the date I... -
Pass XML string to a URL
I need to pass a xml string to the URL. and return I will get a XML response. I need to pass the varible in an online form and send the result in... -
In true, i need to pass a placeholder by param
Hi again. I'm wrong in my first message. What I need to do is, render my control in a placeholder passed by param. I try somethings here, by I get... -
Passing Param to SQL string
Thanks Bob, for you help and suggestions and please accept my apologies. Kind Regards Rikesh "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote... -
Pass Param to SQL Query
Hi I'm sure this is very trivial, but I simple don't know how to it? I've got a SQL query but I wish to pass a 'WHERE' clause to it, to filter... -
Paul Whitham TMM #2
Re: & in a string to pass through url param
I would build your value up outside of the <option> statement but inside of
you repeat region like this
<%
LinkURL = Recordset1.Fields.Item('MLSNum').Value & "&custid=16"
%>
<option
value='<%=LinkURL%>'><%=(Recordset1.Fields.Item('T our2Name').Value)%></optio
n>
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"TIMLORI" <webforumsuser@macromedia.com> wrote in message
news:cvj2o4$48p$1@forums.macromedia.com...pass> I am trying to add a list/menu in DW2004, and for each option I need tostring> url paramerters the problem I am having is concantinating & in a'&custid=16'%>'><%=(Recordset1.Fields.Item('To ur2Name').Value)%></option> example: <option value='<%=(Recordset1.Fields.Item('MLSNum').Value) &
>[url]http://360vegastour.com/vtviewer.asp?mls=460821%26custid%3D16&Submit=V iew[/url]>
> It displays jibberish in browser where ever the & or = is in a string.
> Example:
>> Thank You in advance
>
Paul Whitham TMM Guest
-
Michael Fesser #3
Re: & in a string to pass through url param
.oO(Paul Whitham TMM)
Shouldn't that be>I would build your value up outside of the <option> statement but inside of
>you repeat region like this
>
><%
>LinkURL = Recordset1.Fields.Item('MLSNum').Value & "&custid=16"
LinkURL = Recordset1.Fields.Item('MLSNum').Value & "&custid=16"
^^^^^
instead?
Micha
Michael Fesser Guest
-
TIMLORI #4
Re: & in a string to pass through url param
Thanks guys but that didnt do it for some reason the ampersand (&) and the
equals(=) will not display correctly in browser for passing url paramerters, I
cant believe Macromedia wouldnt have thought we might want to send more than 1
param at a time from list/menu, so I know there has to be a way to say in code
not to recognize & or = as string concantinators but as a string itself, I
know in VB you would just add like double quotes but I dont know any other
sujestions are greatly appreciated. Thanks again
TIMLORI Guest
-
CMBergin #5
Re: & in a string to pass through url param
<option value="<%=Server.URLEncode(Recordset1.Fields.Item( "MLSNum").Value &
"&custid=16"%>"><%=Recordset1.Fields.Item("Tour2Na me").Value%></option>
"TIMLORI" <webforumsuser@macromedia.com> wrote in message
news:cvj2o4$48p$1@forums.macromedia.com...pass> I am trying to add a list/menu in DW2004, and for each option I need tostring> url paramerters the problem I am having is concantinating & in a'&custid=16'%>'><%=(Recordset1.Fields.Item('To ur2Name').Value)%></option> example: <option value='<%=(Recordset1.Fields.Item('MLSNum').Value) &
>[url]http://360vegastour.com/vtviewer.asp?mls=460821%26custid%3D16&Submit=V iew[/url]>
> It displays jibberish in browser where ever the & or = is in a string.
> Example:
>> Thank You in advance
>
CMBergin Guest



Reply With Quote

