473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

forwarding a form to another server

Hi there everyone.

Right I have scoured everywhere to find out how to do this and I
haven't the foggiest...

I am building a shopping cart that uses an external clearing house
[world pay].

My shopping cart sequence is :

Checkout page [show the contents of the cart etc] ----> Confirmation
confirm the details of the cart, finalise totals etc -------> Forward
to world pay for card transaction -------> On completion world pay does
a "call back" that executes a page on my site which effectively
confirms that the trasaction took place [puts in transax ids etc into
my database for order management].

This works great however what has happened is that sometimes world pays
call back doesn't fire when it should have due to internet congestion
etc the request times out. Because the order isn't confirmed until we
get the call back needless to say this causes a problem.

So what I want to do is basically put an invisible page in between our
confirmation screen [where the user says "Yes this is correct take me
to world pay"] and the first world pay screen [enter your card
details].

Where I am having troubles though is I want this page to be invisible.
I need to submit the confirmation page form to this hidden page and
then *automatically" submit the resulting form to world pay - and move
the users' browser along as well. I don't want the user to have to
submit the page again though and I certainly don't want to hack it with
a onLoad="form.Submit()" type thing in Javascript on my hidden page -
it has to be accessible for people without JavaScript switched on.

I'm sure it is a case of writing the headers or soemthing but the only
things I can find are using fsockopen which submits a request and
downloads the results into the originating page. I want to forward the
browser entirely.

Any help would be very much appreciated.

Kind regards
AndrewF

Dec 20 '05 #1
4 1445
Does the data have to be post? Because if it was method GET then you
could do something a bit like this I suppose:

<?php

#Get all of the data using $_GET[]; and $_POST[];

$gets = ""; //You should arange them in this variable, in the GET style
format like: id=$id&text=$text

header("Location: http://worldpayaddressgoeshere.com/?$gets");

?>

Tell me if that works, I am curious about it.

Dec 20 '05 #2
Hi CL.

Thanks for the post [entertaining read as well ;) ] however this won't
work in my case because firstly the cURL extensions aren't available
[limited hosting company - not my fault!] and secondly I don't want to
read the data back to my site. I need to transter the entire session to
the new host for post-processing....

Cheers
AndrewF

Dec 21 '05 #4
AndrewF wrote:
Hi CL.

Thanks for the post [entertaining read as well ;) ] however this won't
work in my case because firstly the cURL extensions aren't available
[limited hosting company - not my fault!] and secondly I don't want to
read the data back to my site. I need to transter the entire session to
the new host for post-processing....


First, you don't need cUrl to use the stream API functions. They're a
standard part of PHP 4.3+.

Second, if you want the post to occur transparently, then you have to
proxy the whole transaction. The HTTP status code 307 will redirect a
post, but some browsers would prompt the user to confirm the action
first.

Dec 21 '05 #5

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

Similar topics

0
by: Miles Davenport | last post by:
Apologies for cross-posting, but I felt this query would be relevant to HTML and PHP forums. I am currently modifying a PHP IMAP script which allows the user to view their email via a web...
0
by: Anu | last post by:
Hi everyone, I have just joined the group. I need your expert comments on my problem urgently. I am trying to establish SSH forwarding for establishing connections from my web server (obsgeosn) to...
1
by: Alexey Aksyonenko | last post by:
I know that SQL Servers can be set up to forward alerts to a single SQL Server. I am wondering if same would be true for the Maintenance Plan Reports. Basically, I want to have only one SQL...
10
by: Howard Kelley | last post by:
What is the HTML code for forwarding one page to another? I recall there is a meta statement that can used. In other words, I want browser inquiries to http://xxx.xx to go immediately to...
1
by: Jesse Rosenthal | last post by:
Hello all, I'm writing a script which will backup data from my machine to a server using rsync. It checks to see if I am on the local network. If I am, it runs rsync over ssh to 192.168.2.6...
0
by: Daniel P. | last post by:
Can anyone advise me for a staring point where I can learn about how to do forwarding? What I need is to learn how to have IIS machine that is exposed to the outside world that does only...
7
by: pigeonrandle | last post by:
Hi, Does anyone know if there is a way to foward messages that a form receives to another application form. I was thinking i could override WndProc, but i don't know how to forward any messages...
0
by: Nick Caramello | last post by:
We are in the process of prototyping an architecture for a multi-tier application, and have run into the following problem: 1) We have a client application who calls a method sending over a...
6
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.