开发者

HTML form problem! [closed]

开发者 https://www.devze.com 2023-03-22 02:02 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.开发者_运维问答 Closed 11 years ago.

Does the text written in the input value of the form get appended to the form action URL if that input field is left empty? if not, then how can we do that?


Yes. It will be added to the query string in GET and in the post values when POSTing.


As already stated it will, in the url in will be like ?someKey=&someOtherKey= you will see that there is no value for ether key just the start of the next. You can force a value in a input by using value='some default value' in the HTML this will show to the user and be sent in the $_GET and $_POST.

Hope that this clear it up a bit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号