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 ?
dog_starAsked:
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, 
 %>
 
	<html>
		<head><title>Tets Page</title></head>
	<body>
	<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="<% %>">
		
	
		
	</form>
	
	<script language="javascript" type="text/javascript">
		document.frm.submit();		
	</script>	
	
</body>
</html>

Open in new window

0
 
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,
0
 
SreejithGCommented:
Use XMLHTTP Object
See the link below for more details
http://www.4guysfromrolla.com/webtech/110100-1.shtml
0
 
dog_starAuthor Commented:
a simple solution that works well.... thanks...
0
 
Loganathan NatarajanLAMP DeveloperCommented:
Glad to help!... Thanks for your grade!
0
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.