sigh... I'm getting to that conclusion too Ammar :(... Apparently, there is
no way to modify the POST and redirect the user, which is logical taking
into consideration what you said earlier about what POST is for.

I guess I'll have to do that hidden input fields thing. The silver lining is
that now I know that that can't be done plus my new found knowledge about
cURL.

Thanx for the help guys.

On Jan 28, 2008 3:00 PM, Ammar Ibrahim <[EMAIL PROTECTED]> wrote:

> curl is an extension, you need to make sure that your host has it.
> http_request does what you need in an easier fashion. But curl is faster
> (because it's written in C). And you can't show the user the page, you can
> only show him the result, if you don't to manipulate the post with details
> that the user can't see you can user Javascript, otherwise, you can't :)
>
>
> On Jan 28, 2008 2:46 PM, Al-Faisal El-Dajani <[EMAIL PROTECTED]>
> wrote:
>
> > Hmm.. actually not exactly, exactly.. it allowed me to manipulate the
> > POST and resubmit the form, however it didn't redirect to the final
> > location.
> >
> > Form is on page A, manipulation is on page B, and the user should be
> > redirected after form submission to page C. What happened with cURL, is that
> > user submitted A, I manipulated the post at B and submitted it, but then,
> > the user didn't get to C. Rather, the contents of C were displayed in B.
> >
> > Since the form on A is designed to identify who the merchant is (me),
> > and the amount of money to subtract, and actual credit card information will
> > be filled on C (the payment gateway hosts this form over SSL), I dont' think
> > this is going to work.
> >
> > Oh well, at least I learned about cURL.
> >
> >
> > On Jan 28, 2008 2:32 PM, Al-Faisal El-Dajani <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Man, why didn't I find out about cURL earlier? It does _exactly_ what
> > > I want... Thanx Ma'moon :)
> > >
> > >
> > > On Jan 27, 2008 3:15 PM, Ma'moon <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hello Faisal,
> > > > if i got you right then i think that cURL is in a good position here
> > > > when you receive the data from the client, process this data, get it 
> > > > ready
> > > > for submition and POST it through cURL.
> > > >
> > > > Cheers
> > > >
> > > >
> > > > On 1/27/08, Ahmad Saleh <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > is that clear enough? :)
> > > > >
> > > > >
> > > > > On Jan 27, 2008 2:35 PM, Al-Faisal El-Dajani <
> > > > > [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > Looking into http_request.. thank you for the suggestion :)
> > > > > >
> > > > > > On Jan 27, 2008 2:07 PM, Ammar Ibrahim <[EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > >
> > > > > > > Capture the request, add data to POST, and do the request
> > > > > > > yourself. Capture the output, and based on that redirect the user.
> > > > > > >
> > > > > > > http://pear.php.net/package/HTTP_Request is your freind
> > > > > > >
> > > > > > >
> > > > > > > On Jan 27, 2008 1:32 PM, Al-Faisal El-Dajani <
> > > > > > > [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > > I get your point Ammar, but thing is, I got this online
> > > > > > > > payment service that I have to integrate with. They only accept 
> > > > > > > > POST. Now,
> > > > > > > > their examples and tutorials tell me to build a form, with some 
> > > > > > > > hidden
> > > > > > > > fields containing information the user shouldn't view, such as 
> > > > > > > > bank ID. So I
> > > > > > > > thought of letting the user submit the form, I'll receive the 
> > > > > > > > submission,
> > > > > > > > add the extra information the user shouldn't be viewing then 
> > > > > > > > resubmit it.
> > > > > > > >
> > > > > > > > I know, their service sucks. But it absolutely has to be
> > > > > > > > this service. If you can think of any way around this, I'm all 
> > > > > > > > ears.
> > > > > > > >
> > > > > > > > On Jan 27, 2008 1:24 PM, Ala'a Ibrahim <
> > > > > > > > [EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > > well,
> > > > > > > > > the best thing to do is a rewrite rule, outside the scope
> > > > > > > > > of php.
> > > > > > > > >
> > > > > > > > > you cannot force the browser to do whatever you want upon
> > > > > > > > > a certain
> > > > > > > > > return header.
> > > > > > > > >
> > > > > > > > > On Jan 27, 2008 12:26 PM, Al-Faisal El-Dajani <
> > > > > > > > > [EMAIL PROTECTED]> wrote:
> > > > > > > > > > Hey guys,
> > > > > > > > > >
> > > > > > > > > > Is there a way to redirect the user to a different page
> > > > > > > > > and send POST
> > > > > > > > > > variables too? There must be a way, but when I Google'd,
> > > > > > > > > all the answers
> > > > > > > > > > were based on fsockopen, and that doesn't redirect the
> > > > > > > > > user. Maybe something
> > > > > > > > > > using header() ?? I have no idea.. so anything and
> > > > > > > > > everything are welcome.
> > > > > > > > > >
> > > > > > > > > > Thanx for the help
> > > > > > > > > > --
> > > > > > > > > > Al-Faisal El-Dajani
> > > > > > > > > > Phone: +962-7-79737050
> > > > > > > > > > P.O Box: 140056
> > > > > > > > > > 11814 Amman, Jordan
> > > > > > > > > >  >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >                                 Ala'a A. Ibrahim
> > > > > > > > > http://guru.alaa-ibrahim.com/
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Al-Faisal El-Dajani
> > > > > > > > Phone: +962-7-79737050
> > > > > > > > P.O Box: 140056
> > > > > > > > 11814 Amman, Jordan
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Al-Faisal El-Dajani
> > > > > > Phone: +962-7-79737050
> > > > > > P.O Box: 140056
> > > > > > 11814 Amman, Jordan
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Ahmad Fathi Saleh
> > > > > http://ahmad.jopdc.com
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > > Al-Faisal El-Dajani
> > > Phone: +962-7-79737050
> > > P.O Box: 140056
> > > 11814 Amman, Jordan
> > >
> >
> >
> >
> > --
> > Al-Faisal El-Dajani
> > Phone: +962-7-79737050
> > P.O Box: 140056
> > 11814 Amman, Jordan
> >
> >
>
> >
>


-- 
Al-Faisal El-Dajani
Phone: +962-7-79737050
P.O Box: 140056
11814 Amman, Jordan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Jordan PHP Users Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/JoPHP
http://Jolug.org/
-~----------~----~----~----~------~----~------~--~---

Reply via email to