Re: POST Method



*** FF wrote/escribió (Fri, 29 Apr 2005 08:37:07 +0200):
> I would like send variable to php script from URL
> using POST method. Is possible do it ?
> ( <a href="xxx.php">)

You need an intermediate script so you can:

1) Read the value from $_GET array.
2) Perform an HTTP connecion using the POST method.

Check the curl chapter, it may be helpful.


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
.



Relevant Pages

  • [CORRECTIONS AND ADDITIONS ]Azbb v1.1.00 Cross-Site Scripting
    ... variable upon submission to the post.php script via the POST method. ... Prev by Date: ...
    (Bugtraq)
  • Re: $_POST problem for newbie
    ... Which is the proof the POST array is empty. ... POST method. ... put the element method="POST" in your form tag or manipulate the $_GET ...
    (comp.lang.php)
  • Re: [PHP] HTTP methods, Web Browsers and REST
    ... it sounds like apache does allow the use of a script to handle PUT requests ... Apache handles PUT exactly like it handles the POST method. ... getting php to handle PUT requests is probably not too complicated.. ... invoke PUT and DELETE from the browser, or is there some way to invoke these ...
    (php.general)
  • Re: arrays... and long-term-novice
    ... how would "script knew" when to break? ... foreach ($array as $key=>$value){ ... Prev by Date: ...
    (comp.lang.php)
  • Re: php paging of an array...
    ... in my programs, i list all image file into an array, then show only ... then create script to show page number and previous/next btn. ... Prev by Date: ...
    (php.general)