further - [PHP] Does HTACCESS block $_POST ?
| From: | gordonisnz at gmail dot com | Date: | Mon, 21 Apr 2025 20:09:55 +0000 |
| Subject: | further - [PHP] Does HTACCESS block $_POST ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328678@lists.php.net to get a copy of this message | ||
Off to work soon. But a final test results in interesting results..
HTML:-
<form action="/vyb/index.php" method="post">
<select class="w3-select" name="viewaddress"
onchange="this.form.submit()">
<option value="">Home/main office</option>
<option value="909-2-2" >(909-2-2) 88 Newland St, Bondi Junction NSW
2022</option>
</select>
etc....
When i submit the form, it should go to /vyb/index.php and activate
the script...
(i renamed the script to index.php)
HOWEVER - I end up at /vyb/ (no index.php)....
my htaccess:-
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ index.php
END HTACCESS (ive taken away the NC, L, QSA etc..
Question: can the htaccess be redirecting the browser & thus losing
the post values ?
Can the redirect occur at htaccess leve - or within the php itself ?
there are 2 x HEADER lines in the php itself - but neither of them go
to /vyb/ url..
(where the script is)
--
Gordon.