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.
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 11/06/2007, 6:13 PM |
|
headhunter
exactly what is it that you are trying to do??
|
 |
 |
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.
|
 |
 |
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!
|
 |
 |
|