sending form variables with POST without form

Posted on 2008-11-05
Last Modified: 2011-09-20
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 ?
Question by:dog_star
    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    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,
    LVL 36

    Accepted Solution

    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

    LVL 3

    Expert Comment

    Use XMLHTTP Object
    See the link below for more details

    Author Closing Comment

    a simple solution that works well.... thanks...
    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    Glad to help!... Thanks for your grade!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now