Redirect Plugin / POST & GET

Gaukeleier 26 May, 2010
Hi everyone!

I'm a real noob with php, so I hope you wont kick me for this question🙂
I wonder how i can configure the redirect-plugin to submit the data without the
querystring... I want to use the submitted data in a extern php-script with $_POST.

Is that possible? Or should i use curl?
If yes - could you give me an example how to read the curl_parameters in php?

Thanks a lot for all your work and help!

Best wishes! 😀


Jascha
GreyHead 26 May, 2010
Hi Jascha,

Both the ReDirect and cURL plugins are similar.

ReDirect takes the user AND the data to the URL you specify. This is good for sites like PayPal where the user has to identify themselves.

CURL sends ONLY the data to the external site.

It probably makes no sense to use either without the query string as the other site has no idea what to do if there is no data received.

What is the script you want to use and what data do you need to send?

Bob
Gaukeleier 26 May, 2010
Hi Bob!

Thanks a lot for your answer!

What i want to do is send data to an joomla article-site (with some phph), which is used as result-page and also uses the form-data to write some things in another databse and feed back some results to the user.

So my steps are:

1. Fill in the cf-formular
2. Use the registration-plugin to create an account, if the user wants that.
3. Use the redirect-plugin to send all data to another site where older
scripts use the data.

I know I could use the extra-code field, but i rather want to use an extra results-page so that i can sytle it with other modules an so on.

Everything works fine, only that the query-string sends a lot of data, for example data out of a text-area. Thats why I'm thinking about another solution without a query string (session or whatever?).

I relly appreciate every hint🙂 Perhaps I missed a better solution?

Thanks for your help!

Jascha
GreyHead 28 May, 2010
Hi Jascha,

All of this sounds fine up to the this line

i rather want to use an extra results-page so that i can sytle it with other modules an so on.

and then I get lost and no longer understand what you need to do.

Bob
Gaukeleier 28 May, 2010
Ok, perhaps my description was a little bit confusing - sorry🙂
What I ment with "i rather want to use an extra results-page so that i can sytle it with other modules an so on."...

I have built an Article in joomla and put some php in there (I used the directphp-plugin) to analyse the form-data. I want to send the form-data to this article, so that the php on that page can process the data, send it to some database-tables, send his data to some companys per mail and so on...

After that the php code on that page shows the user a result list of companys where his data was sent.

1. FORM ---> send data to ---> 2. joomla-article with php (als resultpage)

The article (or resultpage - Nr. 2) could be styled with modules, ads and so on.
Thats why I want to use this combination.

But when the redirect-plugin send the form data to the result-page (Nr.2) the query string is very long (for example because of the text aera).

Thats why I wonder, if I could send the data without the querystring shown up in the browser?
GreyHead 29 May, 2010
Hi Jascha,

I'm still pretty unclear about the process you are describing here.

It's probably simplest to save the form results to the database and then have the Article page code read them from there.

If they have to be in Article form then use the submit_content form from the downaloads area here.

Bob
This topic is locked and no more replies can be posted.