CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to trigger server event if form action is set to external page

Print topic Send  topic

Author Message
headhunter


Posts: 130
Posted: 11/06/2007, 1:54 PM

Hello,

Is it possible to trigger a server event (for example button on click) when the form action is set to an external page/site?

thanks.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 11/06/2007, 6:13 PM

headhunter
exactly what is it that you are trying to do??
View profile  Send private message
headhunter


Posts: 130
Posted: 11/06/2007, 11:42 PM

I have a form with hidden fields that are used for a secure payment processor (in my case Ogone secure payments).
The form action is a page on a server at ogone.
I want to execute a Button -> server -> on click event, but when you change the form action it doesn't execute the event code (I think it is the same for all other events).
So when clicking the button you get redirected to a secure payment page at Ogone to process it (the page defined as the form action) -> No events are executed.
View profile  Send private message
DonB
Posted: 11/07/2007, 5:03 AM

The browser requests the other page and nevers 'calls' the page back (the
one with the action). The appropriate thing to do is leave the action
alone, let the page be called, and use the header() function to send the
browser to the other page after you process your event. Just understand
this has to be done BEFORE any output is sent to the browser, or else you
get an error about 'headers have already been sent'.

--
DonB

http://ccswiki.gotodon.net


"headhunter" <headhunter@forum.codecharge> wrote in message
news:547316c70bfc79@news.codecharge.com...
> I have a form with hidden fields that are used for a secure payment
processor
> (in my case Ogone secure payments).
> The form action is a page on a server at ogone.
> I want to execute a Button -> server -> on click event, but when you
change the
> form action it doesn't execute the event code (I think it is the same for
all
> other events).
> So when clicking the button you get redirected to a secure payment page at
> Ogone to process it (the page defined as the form action) -> No events are
> executed.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

headhunter


Posts: 130
Posted: 11/07/2007, 8:26 AM

DonB,

for as far as I know when using a header redirection, the post method of the form doesn't submit the values in the form to the redirction page, or I don't understand what you are talking about.

The hidden fields in the form should be passed (via post method) to the external page.

Thanks for your help already!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.