A diferença é que um envia o comando HTML e o outro não
To create a button that displays text after being clicked, you can use HTML and JavaScript. Here's an example code: HTML: <button onclick="displayText()">Submit</button> <p id="text"></p> JavaScript: function displayText() { document.getElementById("text").innerHTML = "Text to display after clicking submit button."; } In this code, the button is created using the <button> tag and an onclick attribute is added to call the displayText() function when clicked. The function displayText() uses JavaScript to access the element with the ID "text" and change its innerHTML to the desired text, which will be displayed below the button.
HTML supports ten input types: button, checkbox, file, hidden, image, password, radio, reset, submit, and text.
DHTML combines HTML, JavaScript, the HTML DOM, and CSS.
You should use php form for it. -EDIT From the above numpty- <? $button = $_POST['button']; $textfield = $_POST['textfield']; if($button && $textfield){ echo $textfield; // This will output "Hello" as the initial value of the textfield was "Hello" } ?> <html> <body> <form name="form1" method="post" action=""> <input name="textfield" type="text" id="textfield" value="Hello"> <input type="submit" name="button" id="button" value="Submit"> </form> </body> </html>
hello
HTML means Hypertext Markup Language. The tag is used for various javascripts and Java programs. HTML submit is a form of a script in Java programming.
http://dhivacpt.blogspot.com/2007/10/difference-between-ddr1-and-ddr2.html
You can enter a search button in HTML using this code, .
<html> <body> <form name="input" action="action.asp" method="post"> First name: <input type="text" name="FirstName" value="Rocky" size="20" /><br /> Last name: <input type="text" name="LastName" value="Maivia" size="20" /><br /> <input type="submit" value="Submit" /> </form> <p>Click the "Submit" button and the page would be submitted to "action.asp".</p> </body> </html>
Here is the code: <head> <html> <script type="text/javascript" language="javascript"> function submitForm() { // Validation Code in here var confirm = confirm("Are you sure you want to submit"); if(confirm==true) { form1.form.submit(); return true; } else { return false; } } </script> </head> <body> <form name="form1" action="file_name.php" method="post"> // Other form elements here <input type="submit" name="submit" id="submit" onclick="javascript:submitForm();return false;" /> </form> </body> </html>
Client side HTML can be seen as dynamic HTML but not much effective. Server Side Dynamic HTML is much more effective.
Dynamic HTML is basically using HTML and some other things to enhance it, usually Javascript and Styles. All HTML really does is format your page. To get your page to do things, you need more than just plain HTML. The following code will create a button that you can click on and it will pop up a message. It uses Javascript. Copy and paste it or type it exactly as it is into your code and it will work.The onClick="alert('Hello');" piece is Javascript. Without it you would still have the button, but when it was clicked, it would not do anything. The Javascript makes your page come alive as it were. That is the idea of Dynamic HTML.