By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,144 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,144 IT Pros & Developers. It's quick & easy.

Posting a form to another script ?

P: n/a
Is there a way to "post" a form to another php script? For example
input.php retrieves some user variables then posts the results to
another script , say form.php?

I know this can be done using perl's LWP by creating an agent. Let me
know if this makes sense or not? I know I can use GET, but I want to
avoid GET for some other reasons.

Thanks!

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

el*************@yahoo.com wrote:
Is there a way to "post" a form to another php script? For example
input.php retrieves some user variables then posts the results to
another script , say form.php?

I know this can be done using perl's LWP by creating an agent. Let me
know if this makes sense or not? I know I can use GET, but I want to
avoid GET for some other reasons.

Thanks!


if i understand right you want to post form1 to form2 to some last
script. this is no problem. you could for instance code the data from
form1 into hidden fields in form2 and then post everything again.

micha

Jul 17 '05 #2

P: n/a
Uzytkownik "chotiwallah" <ch*********@web.de> napisal w wiadomosci
news:11*********************@g49g2000cwa.googlegro ups.com...
if i understand right you want to post form1 to form2 to some last
script. this is no problem. you could for instance code the data from
form1 into hidden fields in form2 and then post everything again.


or try use fsockopen, read some commets to this function on php.net, AFAIR
there is example class to POSTing

Jul 17 '05 #3

P: n/a
Or try cURL to create a new request to the last form. It won't
redirect the client's browser but instead make the request
"behind-the-scenes" after which you could get the response and do
something useful with it.

It all really depends on what you want to accomplish.

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.