php_self equivalent in F3

43 views
Skip to first unread message

HarryB

unread,
Jun 26, 2018, 1:41:23 AM6/26/18
to Fat-Free Framework
Hello again,

I had hoped that it would take a little longer but unfortunately Dr Google hasn't been able to help.

My form is used to submit multiple sets of data for processing in various ways and in its previous incarnation it used php_self parameter to re-present the form after submit.  This does not work and I get a Method not allowed error.

I have tried to see if there are any hints in the browser developer window but haven't been able to spot anything of use.

Any hints will be greatly appreciated either to fix the problem or on suitable trouble-shooting methods.

Regards

Harry

ikkez

unread,
Jun 26, 2018, 2:48:05 AM6/26/18
to Fat-Free Framework
check https://fatfreeframework.com/quick-reference#SystemVariables I'm sure you'll find something there... maybe the PATH or REALM var.. or just leave the form action field empty, which then refers to the current url.

HarryB

unread,
Jun 26, 2018, 2:57:07 AM6/26/18
to Fat-Free Framework
Thanks ikkez,

I'll have a look there.  I have tried the empty action field and it produced the same result so it might be something in my code itself.  I'm just about to try something else that I thought of to test things so I will let you know what comes out.

Harry

HarryB

unread,
Jun 26, 2018, 3:49:09 AM6/26/18
to Fat-Free Framework
Hi ikkez,

I tried all of those but nothing worked.  Same result.  My idea of bypassing code by checking whether POST.submit was set didn't do any good either.

Harry

On Tuesday, 26 June 2018 16:48:05 UTC+10, ikkez wrote:

HarryB

unread,
Jun 26, 2018, 4:34:14 AM6/26/18
to Fat-Free Framework
Hello again ikkez,

I thought this might be useful.  The error originates at line 1691 in base.php as follows:

            if ($this->hive['VERB']!='OPTIONS')
                $this->error(405);



Does this help?

Harry
On Tuesday, 26 June 2018 16:48:05 UTC+10, ikkez wrote:

Richard Goldstein

unread,
Jun 26, 2018, 6:18:54 AM6/26/18
to HarryB via Fat-Free Framework, Fat-Free Framework
How are you specifying your route? It sounds like it set at GET ... but you probably need to specify GET|POST ... so both methods are allowed.

What is your route definition?



--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/27064d0a-00c1-48d0-9e57-86ee8338fdfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Rich Goldstein, MD

HarryB

unread,
Jun 26, 2018, 6:49:02 PM6/26/18
to Fat-Free Framework
Doh!!!  None so blind as he who will not see.

Thanks muchly for that.  Now onwards and upwards.

Harry
Reply all
Reply to author
Forward
0 new messages