473,796 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form submit -> receive resulting stream in same page

I am trying to connect an e-commerce system to a payment gateway (located in
Hong Kong). The gateway takes values in the form of a simple form submit -
however, the results (i.e. authorisation code, status, etc...) are not
returned to a separate HTML page (I am not given the option of defining a
resulting HTML page to which the results are sent) - but rather I must
receive them within the same page through a data stream somehow.

Does anyone have an idea how this is done? The example code given by the
clearing house is in JSP - so not much use to me. Actually that recommends I
send the data through a stream too - but that seems more complicated than is
necessary surely?

So far, i've done :

print "<form name=\"paydolla r\" method=\"POST\"
action=\"https://www.paydollar.c om/b2c2/eng/payment/payForm.jsp\">" ;
print "<input type=\"hidden\" name=\"orderRef \" value=\"$cus_no \">";
print "<input type=\"hidden\" name=\"amount\" value=\"$finalp \">";
print "<input type=\"hidden\" name=\"currCode \" value=\"344\">" ;
print "<input type=\"hidden\" name=\"lang\" value=\"E\">";
print "<input type=\"hidden\" name=\"merchant Id\" value=\"xxxx\"> ";
print "<input type=\"hidden\" name=\"pMethod\ " value=\"$credit _type\">";
print "<input type=\"hidden\" name=\"epMonth\ " value=\"$credit _expmo\">";
print "<input type=\"hidden\" name=\"epYear\" value=\"$credit _expyr\">";
print "<input type=\"hidden\" name=\"cardNo\" value=\"$credit _no\">";
print "<input type=\"hidden\" name=\"cardHold er\" value=\"$cc_hol der\">";
print "<input type=\"hidden\" name=\"remark\" value=\"\">";
print "<input type=\"hidden\" name=\"payType\ " value=\"H\">";
print "</form>";

.... and within the <body> tag I have onLoad="paydoll ar.submit();" - so my
form is successfull submitting automatically after the PHP script carries
out a few other functions locally (i.e. store orders to the database).

What stumps me is how to receive the resulting data from within the same
page.

Any help would be appreciated. Thanks!

Terence Parker
Jul 17 '05 #1
0 5522

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
4332
by: wk6pack | last post by:
Hi, I have a problem and not quite how to go about solving it. I have a form written in asp. I wish to submit the form and have the server return back to the same page without actually refreshing the page. I know I could write a form, submit it and go to another page. I've searched the web and I see something about HTTP Status code of 204
8
3054
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform" action="page2.asp" method="post"> But I don't want to open another page, I just want to submit the form data. Should I do the following?? myform.submit();
5
4547
by: Bjorn | last post by:
Hi, I need to submit in the same page two forms to two different ASP-pages. I created two forms, each with hidden input and a submit button. But it doesn't work. Nothing happens with the second form. Does it exist a way to do that? Thanks bjorn
2
19552
by: Ben Turner | last post by:
Hi, I need to create an ASPX page that includes both traditional HTML Forms (which are submitted to a third-party site like a travel booking service) and also make use of the ASP.Net form. I've tried a number of approaches so far but none seem to really suffice: 1. Position the HTML form elements absolutely and simply write the HTML after the </form> tag. This sort of works but then allows no server control over the creation of the...
4
3518
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I click a button on a pop-up window the javascript for that button click does a 'button.form.submit'. On the Server side there is a Button click event for this button, but for some reason it no longer fires. It worked fine before and everything...
2
1442
by: prabu507 | last post by:
hi , please if u know the answer reply ..... the question is i m having a form and a button control if i enter the password field then after clicking the button it should call a javascript function where the password got encrypted and the encrypted value should be asigned to the same text field and then it should submit the values..to the same page. after submitting we have to decrypt the password and i...
1
3595
Fary4u
by: Fary4u | last post by:
Hi Guys i'm trying to upload a file, i've tried 3 different methods but still not work out i don't know how to over come this problem hidden file value, multiple form or popup uploading. 1- <SCRIPT TYPE="text/javascript"> function popupform(myform, windowname)
0
1857
Fary4u
by: Fary4u | last post by:
Hi Guys i'm trying to upload a file, i've tried 3 different methods but still not work out i don't know how to over come this problem hidden file value, multiple form or popup uploading. 1- <SCRIPT TYPE="text/javascript"> function popupform(myform, windowname)
1
1149
by: bips2005 | last post by:
after validating a form i need to redirect to same page. could anyone give me some ideas.its urgent
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10174
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5442
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.