[thelist] Simply (?) ASP question
Lonnie
kr43m0r at earthlink.net
Sat Nov 15 12:56:03 CST 2003
> I am trying to send a form to PayPal, but need to use ASP variables within
> the form. Presently I have:
>
> <form action="https://www.paypal.com/cgi-bin/webscr" method="get">
> <input type="hidden" name="cmd" value="_xclick">
> <input type="hidden" name="business" value="???.coM">
> <input type="hidden" name="return" value="http://???.com/">
> <input type="hidden" name="item_name" value= <% strMember %> >
> <input type="hidden" name="item_number" value= <% strMember %>
>
> <input type="hidden" name="amount" value= <% strMember_Amt %>
>
>
> <input type="hidden" name="currency_code" value="USD">
>
> The problem is that the "<% strMember %>" and "<% strMember_Amt %>" syntax
> is wrong. Does anyone know how to include an ASP variable here. Thanks
> greatly. Rick
Use the response.write shorthand and don't forget quotes:
<input type="hidden" name="item_name" value="<%= strMember %>">
More information about the thelist
mailing list