$_POST vs $_REQUEST

[email protected] (Slack-Moehrle)
Newsgroups php.general
Message-ID <1805389354.299.1266871156449.JavaMail.root@indie.theindiecompanyllc.com>
Hi All,

I have Forms that I submit for processing. I have seen examples of people using either $_POST or $_REQUEST.

When would I choose one over the other?

Also, I see examples of these being used with and without the single quotes

Like:

$_POST[j_orderValue]
or
$_POST['j_orderValue']

Single quotes is best, correct to prevent sql injection?

-ML
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.