473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Posting a form to another script ?

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
3 1485

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Phil Powell | last post by:
Where can I find an online PHP form validator script library to use? I have tried hacking the one here at work for weeks now and it's getting more and more impossible to customize, especially now...
1
by: Mike Wimpe | last post by:
Without creating a form, how do i pass a value to another script? I would like to pass: group = "Oranges" to another script or at least just 'group' and initialize it in the first script. ...
1
by: Benoit Fries | last post by:
Hello, I have some problems with a Javascript that should redirect me to another page, it works fine most of the times but sometimes it hangs on a blank page. I made lots of tests and finally...
6
by: zzapper | last post by:
Hi, If I make a mistake designing a JavaScript Form Checker, ie get the name (or case) of a form Field wrong, JavaScript seems to default to immediately returning true and the form is submitted...
2
by: webbedfeet | last post by:
Hi I hope someone can help me. I have a client side form validation script which works perfectly in IE but clicking "Submit" in Mozilla does nothing - the form won't submit. Is there something I...
9
by: ad | last post by:
I use the codes below to clear the cookie: HttpCookie myCookie = new HttpCookie("us_id"); myCookie.Expires = DateTime.Now.AddDays(-1d); Response.Cookies.Add(myCookie); It do well when the...
2
by: Norman Peelman | last post by:
From: "Norman Peelman" <npeelman@cfl.rr.com> Subject: Re: posting form data to two php scripts at once Date: Sunday, December 17, 2006 12:06 AM <one.1more@gmail.comwrote in message...
1
by: Karim Ali | last post by:
Hi, I would really appreciate help on this. I have a script (s1.py) which I would like to call from another script (s2.py). No problem there. The first issue is that s1.py has a command line...
3
by: OD | last post by:
Hello, Is it possible with sqlserver to call a sql script from another sql script, like @ in oracle ? Thanks, Olivier
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.