ranialexander 0 Newbie Poster

Hi all

I am facing a problem in posting some values to an asp file from an aspx.
From my shopping cart project coded in aspx I have to post some values to an asp file.

Code in the aspx file it is written as,

strParam = "mrfnbr=" + "628249";
strParam = "&merchant_reference_no=" + "628249";
strParam = "&merchant_id=" + "95234922";
strParam += "&order_desc=" + objProcessPay.ProductName;
strParam += "&mordnbr=" + objProcessPay.PrefixOrderID;
strParam += "&amount=" + dr.ToString();	
strParam += "&succurl=" + "http://www.visionics.a.se/DirectPay/Success.aspx";
strParam += "&failurl=" + "http://www.visionics.a.se/DirectPay/Success.aspx";
strParam += "&signature=" + "nosignature";
Response.Redirect("../pg/pgrequest.asp?"+ strParam);

And want to Get the values in the asp files extracted separate.
For getting the values in the asp file code is as,

<HEAD><title>Processing..</title>


<%
 
        dim ID,perform,currencyCode,price,merchantReferenceNo,orderDesc,messageHash,message_hash,pgdomain,pgInstanceId,merchantId,hashKey
	
	pgdomain = "pg.eazy2pay.com"
	pgInstanceId = "14545"
	merchantId = "445454"
	hashKey = "54664"
	perform = "initiatePaymentCapture#sale"
	currencyCode = "356"
	
	orderDesc = Request.QueryString["order_desc"];
    price = Request.QueryString["amount"];
    
	merchantReferenceNo = "628249"

	messageHash  = pgInstanceId  & "|" & merchantId & "|" & perform & "|" & currencyCode & "| & price & |" & merchantReferenceNo  & "|" & hashKey & "|"   
	message_hash = "CURRENCY:7:" & b64_sha1(messageHash)

%>
<script language="javascript">

function onLoadSubmit() {
	document.merchantForm.submit();
}
</script>
<script id=clientEventHandlersJS language=javascript>
<!--

function Submit1_onclick() {

}

//-->
</script>
</HEAD>

The values price and OrderDesc have to extracted from the posted "strParam". But it is not working with this code.

I have tested this asp file by giving default values for price and OrderDesc and it worked properly.

Can anyone please help me to extract the values that is posted from the aspx code.

When submit button is clicked, the url in the address bar is showing with the values, but it is not entering into the asp file.

Thank u
Regards,
Rani Alexander

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.