Jump to content

HTML & PHP Form Questions/Views


Irresistable

Recommended Posts

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:bob@bob.bobnet

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.