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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 usingvalue='some default value'in the HTML this will show to the user and be sent in the$_GETand$_POST.Hope that this clear it up a bit.