Irresistable Posted November 4, 2009 Share Posted November 4, 2009 Has anyone come across a HTML Form components, that should actually be handled by PHP, or vice versa? Eg: A normal form.. with a submit and reset button. The buttons have properties; Submit Form Reset Form None Submit form, needs a form handler eg: PHP in this case. Reset form, doesn't need a form handler, its handled by HTML. Why? If HTML can reset a form, can't it send the form to the action eg: action=mailto:[email protected] In the same kind of format? if a HTML form can take the information off a form, why can't it .. give the information aswell? Surely Reset Form should require a PHP handler if HTML doesn't support Submit Forms. There may be a reason, I'd like to find it out. Other than that Has anyone come across similar things with HTML & PHP Quote Link to comment https://forums.phpfreaks.com/topic/180330-html-php-form-questionsviews/ Share on other sites More sharing options...
Daniel0 Posted November 5, 2009 Share Posted November 5, 2009 It's not HTML that resets the form, it's your browser that resets it. An INPUT or BUTTON element with type="reset" is per definition supposed make the browser reset all form fields in that form to the default state they were in when the page loaded. Submitting a form is different. You can easily submit the form (again, it's your browser that does this, not HTML) to any page, but unless there is something to handle it on the other end, the stuff you wrote in the form has no meaning. HTML is what you call a markup language. It's just describing what your content is, not what anyone is supposed to do with it. Quote Link to comment https://forums.phpfreaks.com/topic/180330-html-php-form-questionsviews/#findComment-951606 Share on other sites More sharing options...
Irresistable Posted November 5, 2009 Author Share Posted November 5, 2009 Ahh, thanks for the explanation Quote Link to comment https://forums.phpfreaks.com/topic/180330-html-php-form-questionsviews/#findComment-951665 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.