Hello all
Does anyone know if its possible to post data using the http POST method to
another form using php?
Yes. If you search around you'll find some pure-PHP code snippets to do
this... or do it yourself...
To programmatically make a POST request you need to open a socket
connection to the
Aurélien Cabezon wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bob Pilly wrote:
| Hello all
Hi,
| Does anyone know if its possible to post data using the http POST method
| to another form using php?
| I know its possible to use:
| header( "Location: somelocation.php?" .SID&somevar=$somevar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bob Pilly wrote:
| Hello all
Hi,
| Does anyone know if its possible to post data using the http POST method
| to another form using php?
| I know its possible to use:
| header( "Location: somelocation.php?" .SID&somevar=$somevar );
| But this uses the G
--- Richard Davey <[EMAIL PROTECTED]> wrote:
> JH> I am curious if there is anyway to take a variable that is passed
> JH> via a URL by a reguler text hyperlink Ex:
> JH> http://localhost/Calendar/active_layout.php?d=2.1.2004
> JH> and hide it like you would do with the POST method using forms
>
>
Thanks Richard... I will do some erading on that
Cheers!
Joe
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 11:08 PM
To: Joe Harman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] POST method for hyperlink
Hello Joe,
Sunday, January 18
Hello Joe,
Sunday, January 18, 2004, 3:26:18 AM, you wrote:
JH> I am curious if there is anyway to take a variable that is passed via a
JH> URL by a reguler text hyperlink
JH> Ex: http://localhost/Calendar/active_layout.php?d=2.1.2004
JH> and hide it like you would do with the POST method using
--- Esteban Fernandez <[EMAIL PROTECTED]> wrote:
> Someone know how to capture the vars and values from the POST method
Use $_POST['name_of_variable'].
Chris
=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
--
PHP General Mailing List (http://www.
I've never tried with fopen, but I know you can with fsockopen. That
doesn't really answer your question, but I thought it might help out.
Here's an example with fsockopen;
$fp = fsockopen($domain,80, $errno, $errstr, 30);
if (!$fp){
//error handling stuff
}
else{
fputs ($fp, "PO
> Curl will let you perform post operationgs, take a look at
> http://www.php.net/curl.
>
> Note you will need to have libcurl installed and PHP will have to be
> compiled with curl support.
>
> There are also probably classes that allow you to do post requests, take
> a look at the script reposito
Curl will let you perform post operationgs, take a look at
http://www.php.net/curl.
Note you will need to have libcurl installed and PHP will have to be
compiled with curl support.
There are also probably classes that allow you to do post requests, take
a look at the script repositories, hotscrip
Why not use sessions?
- Original Message -
From: "Alex Shi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 3:09 PM
Subject: [PHP] Post method
> Hi,
>
> Any one know in a php script, if it is possible to simulate a post method?
> I mean I want to header() to an
Muhammad Khairuzzaman wrote:
> Yes, done that too.
Have you checked that you don't have method limits in your httpd.conf?
That would be my first guess re: the POST issue.
Have you checked your register_globals setting in php.ini? That would be
my first guess re: the GET variables issue.
--
S
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message
006d01c26f7d$236b39a0$0500a8c0@BAMBINO">news:006d01c26f7d$236b39a0$0500a8c0@BAMBINO...
> Have you confirmed that they are php processed... eg made a phpinfo()
> page and run it?
>
>
> Timothy Hitchens (HITCHO)
> [EMAIL PROTECTED]
>
> HITCH
PROTECTED]
Subject: Re: [PHP] POST method not allowed
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message
006c01c26f7b$529a7530$0500a8c0@BAMBINO">news:006c01c26f7b$529a7530$0500a8c0@BAMBINO...
> Are you sure that .php3 files are being processed by PHP ???
>
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message
006c01c26f7b$529a7530$0500a8c0@BAMBINO">news:006c01c26f7b$529a7530$0500a8c0@BAMBINO...
> Are you sure that .php3 files are being processed by PHP ???
>
>
> Timothy Hitchens (HITCHO)
> [EMAIL PROTECTED]
>
> HITCHO has Spoken!
Yes, i've tri
Are you sure that .php3 files are being processed by PHP ???
Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]
HITCHO has Spoken!
-Original Message-
From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 9 October 2002 12:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] POST
> I have a compiled C CGI that accepts POST method calls, reading
> information off of stdin, and returning its results to stdout.
>
> I need to be able to invoke this from a PHP module, with the PHP module
> loading the POST data for the CGI to fetch, and be able to collect the
> output that the
I'm going to use the curl libs. But FYI i was wanting to forward the data
again using post.
On Thu, 15 Mar 2001, Keith Vance wrote:
> You could can "forward" posted data the same way if you wanted to. I don't
> know what you mean by forwarding. But if you had one script that was a
> form and t
You could can "forward" posted data the same way if you wanted to. I don't
know what you mean by forwarding. But if you had one script that was a
form and the action was set to a script called action.php and then you
wanted to pass that data to yet another script, you could pass the values
in the
Check out using php_curl
HTH
Peter
"Nick Davies" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> How do i forward POST data from a php script. Obviously GET is simple
> (just script.php?$QUERY_STRING) but how does it work with post?
>
>
> Thanks.
>
> Nick.
20 matches
Mail list logo