New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method "get" in from #3205
Comments
if pretty url is off, i think, its not normal. |
Html if sends form many times <input type="hidden" name="r" value="site/test">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value="">
<input type="hidden" name="send" value="">
<input type="hidden" name="TestModel[test_name]" value=""> |
not normal, maybe samdark say something |
It doesn't look OK to me as well. |
show, please, config/web.php file |
i dont see what is wrong here, can you explain? actually values are encoded as needed. |
in my project if i dont use pretty url, uri look like this: index.php?r=site/index&id=1 |
it should look like this, what is wrong here ? if you are talking about that url rules in config for |
This is expected. When the form method is "GET", Yii will extract the query parameters from the action URL into hidden fields because otherwise these parameters will get lost upon form submission. In your case, you need to configure the "action" option so that the URL does not include those parameters that will have text inputs. Unfortunately Yii cannot do this for you due to lack of information. |
is it critically? |
This situation occurs when action is not set
|
Make a test model - TestModel
Make a test form - TestForm:
Make a controller action
Send form
Send form
Send form
Its normally?
The text was updated successfully, but these errors were encountered: