Re: Insert record using a var - basic question :(



..oO(Michael Martinek)

dunno why before didn't work

Tks a lot, nik

If the page is submitted with a POST method, then your values will be
available in $_POST. If it's submitted with a GET, or blank method
then the values will be available in $_GET.

The 'action' URL in a POST form may also contain a query string, so the
script would receive both GET and POST data.

In most cases, you can
just use $_REQUEST, which will access $_GET, $_POST, $_COOKIE globals.

In most cases using $_REQUEST is a really bad idea, since you don't know
where your data is coming from.

If you expect a URL parameter, use $_GET. If you want to access a cookie
value, use $_COOKIE etc. $_REQUEST is useful only in very rare cases.

Micha
.



Relevant Pages

  • http request using fsockopen
    ... On the start of page B I check var $foo. ... Sending the POST data also though the POST method. ... I manually create a HTTP request to page C and use the fsockopen method to ...
    (php.general)
  • http request using fsockopen
    ... On the start of page B I check var $foo. ... Sending the POST data also though the POST method. ... I manually create a HTTP request to page C and use the fsockopen method to ...
    (alt.php)
  • Re: http request using fsockopen
    ... Sending the POST data also though the POST method. ... > I manually create a HTTP request to page C and use the fsockopen method to ... All other PHP scripts in page C is executed as expected though. ...
    (alt.php)
  • need help in updating a website using perl script.
    ... I am trying to write a perl script to update a protected bugzilla ... >Code Snippet< ... While trying to process the request: ... But intrestingly when I change the POST method to a GET method I can ...
    (comp.lang.perl.misc)
  • Re: Post using Query String
    ... post data from the command line. ... you have to have another server convert ... > want to open needs parameters passed to it via the POST method. ...
    (comp.lang.java.programmer)