开发者

HTML form problem! [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜