Monday, January 17, 2011

Submit button (HTML+PHP)

Hye every one?how r u?so for this post we will discuss more on submit button,this lesson will take short time to understand!trust me,hahaha

so,to send this script to somewhere, u just need a HTML Submit button:

<INPUT TYPE = "Submit" Name = "SubmitOne" VALUE = "Login">

we don't need to do add some special code or script or anything special with a Submit button, it is because  the submitting is already done by the PC,server. Easily to say that, we don't need think more about this submitting stuff. As long as SUBMIT has an ACTION set, then ur data will get sent somewhere.What i meant is before this line ,we must have this line first:

                 <FORM NAME ="formOne" METHOD ="POST" ACTION = "">

It is for to assign value to the METHOD and the ACTION.Besides,the NAME attribute is very helpful if we want to check either if the form is really submitted ,or the user just clicked the cancel or refresh button only.My Submit button is called "SubmitOne", but u can call it almost anything u like.


N/NOTE:is that clear?this post just explain which line is enable the submit button,that's all.

No comments:

Post a Comment