sending form variables with POST without form

hi all,

i'm using ASP and Javascript.
A client has a shopping cart which, at the end of the order process, is submitted to a database... the details of this order are then submitted to paypal for payment.

so my problem is this :

the form with all the details of the order is submitted and the database insert scripts are run... how can i now pass all these variables on to paypal using POST ?
Who is Participating?
Loganathan NatarajanLAMP DeveloperCommented:
something like this,

after db insert get values or retriev them and put it from methods
asp process code, 
		<head><title>Tets Page</title></head>
	<form name="frmpremium" method="post" action="<%URL%>">
		<input type=hidden name="Amount" value="">
		<input type=hidden name="Order_Id" value="<%   %>">	
		<input type=hidden name="Merchant_Id" value="">		
		<input type=hidden name="WorkingKey" value="<%   %>">	
		<input type=hidden name="Redirect_Url" value="">
		<input type=hidden name="Checksum" value="<% %>">
	<script language="javascript" type="text/javascript">

Open in new window

Loganathan NatarajanLAMP DeveloperCommented:
You can very well create a FORM on a ASP page, where you can get all the values on the hidden fields / paypal parameter ... then have redirection on the page to the paypal process page...

i have experienced this, it worked me well,
Use XMLHTTP Object
See the link below for more details
dog_starAuthor Commented:
a simple solution that works well.... thanks...
Loganathan NatarajanLAMP DeveloperCommented:
Glad to help!... Thanks for your grade!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.