Click to See Complete Forum and Search --> : Server.URLEncode with form fields?


Webskater
05-19-2007, 12:15 PM
When passing name/value pairs in a querystring you use Server.URLEncode to encode non alpha-numeric values to their ASCII equivalents.

When passing name/value pairs in a form with a method of post like:

<form name="Fred" method="post" action="thispage.asp">
<input name="CoID" value="<%=RS("CoGuid")%>">
</form>

is there any point / need to encode the 'value' of each input?

Thanks for any input.

nathanb
05-20-2007, 07:22 PM
is there any point / need to encode the 'value' of each input?

Thanks for any input.I don't see why there would be, unless the wrong data is being passed.