Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.php Subject: Re: Newby neds help Date: Sun, 08 Feb 2015 15:22:29 +0100 Organization: solani.org Lines: 28 Message-ID: References: <6rtcdahf5gqka5aavks1kub18uoqnd7ajl@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1423405348 10863 eJwNysERACAIA8GWRCRIOZGB/kuQzz12zhSC9APDsbZWnQoF2MGI94hYPtMSMMuq2HIv90hk5gcI7BDK (8 Feb 2015 14:22:28 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 8 Feb 2015 14:22:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 X-User-ID: eJwFwYEBwDAEBMCV8LwYpxH2H6F3ASo7nUGPjb2jpk3r74ANmfKVSh3XypYHz8NLgffaM/wRMRBp In-Reply-To: Cancel-Lock: sha1:2YgzFdY/+fLzC65ojqDvislNxBk= X-NNTP-Posting-Host: eJwNwYkBwCAIA8CVkCfgOBpk/xHauzAsMB0Bj4kxsmPUHh2lyH4pPVWVVxQXSuwlIwdC+30emRCh Xref: csiph.com comp.lang.php:14910 Denis McMahon wrote: > On Sun, 08 Feb 2015 01:29:17 +0100, Christoph M. Becker wrote: > >> Denis McMahon wrote: > >>> Then use php to read the submitted user data from the $_POST or $_GET >>> array (depending which form method you use) and process it into your >>> survey, using appropriate data validation and verification. > >> It seems to be noteworthy that the form method should not be subject to >> an arbitrary choice of the developer, but rather should comply to RFC >> 7231 section 4[1]. Therefore a GET request would be inappropriate, >> denis. > > A POST request may indeed be more appropriate than a GET request, that is > a decision for the developer to make. However, there is no rule that > states "form data must only be transferred to the server using POST". No, of course there is no such rule. It would not make much sense, for example, to submit data of a search form via a POST request. On the other hand, the data for a survey which are going to be stored on the server (what is what the OP wants to accomplish), should not be submitted via a GET request. -- Christoph M. Becker