answersLogoWhite

0


Best Answer

Using Javascript.

This method will use a function attached to a Button but you can call this at any point after the Form has loaded.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

You are better off using Javascript to do a form submit onload event.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you submit a form without using a submit button in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is HTML code of Display text after click on submit button?

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.


How to submit the four page in one button using one form in php?

Use Jquery .hide() and .show() functionality. That way one form can extend up to 4 pages and the final submit button will submit the button while just use the button element on the first 3 pages. A small example <script type="text/javascript" language="javascript"> function showPart2() { $('#next').click(function() { $('#page1').hide(); $('#page2').show(); }); } </script> <body> <form> <div id="page1"> // Code here <input type="button" name="next" id="next" onclick="javascript:showPart2();"/> </div> <div id="page2"> // Code here // Similar 2 buttons to navigate to Previous & Next and functionality of hide & show </div> </form> </body>


What is the purpose of onsubmit for?

The purpose of onsubmit is to be used on the form element only. It captures the moment the form is submitted, following the moment the user activates the form's "Submit" button.


How can submit form and popup come on single submit button click at a time?

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>


What three tags create the body of the form in HTML?

A form can be created in HTML using the <form> tag. Inside form tag we can use elements like input, submit or reset.

Related questions

How does one submit a form using JavaScript?

You can submit a form with Javascript by using certain code which allows you to firstly create a form then nest this with a button that will submit when, for example, a user clicks on it.


How can I submit multiple form's via a single submit button in PHP?

That must be done using a client-side scripting language such as AJAX.


How can you make a PHP form in HTML and submit without using a php file or email?

To submit a file, you don't even need a PHP file. The PHP portion is for processing the form results. You just make a button and make sure you defined the action URL.Name: Gender:Boy: Girl:


What tag would you use to create a submit button with the label send form?

To create a submit button, use the input type submit. To assign text to the button, pass the text in as the value of the value attribute. Like so: <input type="submit" value="Send Form">


Where is the submit button typically located on a form?

The submit button is typically located at the bottom of a form. This is usually the last step to be done after the form has been completely filled out to send the information to the recipient.


How do you get a picture to go on DeviantArt once you have an account?

There's a button on your home page titled "Submit Deviatations". Click on it, and fill out the submit form.


What is HTML code of Display text after click on submit button?

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.


What is submit button?

A button that is used to submit the content of a form.


How to submit the four page in one button using one form in php?

Use Jquery .hide() and .show() functionality. That way one form can extend up to 4 pages and the final submit button will submit the button while just use the button element on the first 3 pages. A small example <script type="text/javascript" language="javascript"> function showPart2() { $('#next').click(function() { $('#page1').hide(); $('#page2').show(); }); } </script> <body> <form> <div id="page1"> // Code here <input type="button" name="next" id="next" onclick="javascript:showPart2();"/> </div> <div id="page2"> // Code here // Similar 2 buttons to navigate to Previous & Next and functionality of hide & show </div> </form> </body>


Is it possible to use javascript to execute a form through post?

Yes by using: document.forms["myform"].submit(); where the form is <form id="myform" action="whatever.php" method="post"></form> But be careful as I had issues for ages with variables/methods clashing. If you are using any buttons with the name submit then change this. It seems to be that document.forms["myform"].submit(); clashes with <input name="submit" type="submit" value="value"> This solved by simply changing the name to something else


How do you make a working form in PHP?

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>


What color is the text of the Submit What if your Entry button on the next page?

It depends on the color specified or if the form button is custom or not, as well as the browser. For Firefox, the default is black.