answersLogoWhite

0


Best Answer

the only way to submit a form directly from a link is with the GET method. The POST method will allow form submission only from the form itself. However, it is relatively simple to create a link to a web page with a form using a POST method where the page has a javascript function to submit the form that executes upon page load. You would first need to send the parameters in the GET fashion and then use those values to populate the form input statements. Example function submitForm(){ document.form.submit(); } (.... rest of form here. Load the input values from the link parameters.)

User Avatar

Wiki User

17y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you submit an HTML form whose method is post using a text link?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does it mean to do HTML submit?

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.


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.


How do you wrte aform in HTML?

<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>


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>


How to pass form data between HTML pages without using url in java?

This can be accomplished by submitting the form data using the POST method.


Can you use body tag and form tag together in HTML?

If you want to maintain W3C compliance, you can't use the FORM tag without the BODY tag. The FORM tag must be contained within the BODY tag. Like this <html> <head> <title>Our Cool Form Page</title> </head> <body> <form method="post" action="example.php"> <input type="submit" value="submit"> </form> </body> </html>


How can you pass data from one form to anather in php?

A file: practise.html <html> <body> <form method="post" action="another.php" enctype="multipart/form-data"> <input type="text" name="field1" id="field1" /> <input type="submit" name="submit" /> </form> </body> </html> File: another.php <html> <body> <?php $text = $_POST['field1']; ?> <form> <input type="text" name="textfield1" id="txtfield" value="<?php echo $text; ?>" /> </form> </body> </html>


What purposes are HTML forms used for?

The purpose of HTML forms is that they are used to allow people to submit information to a web site. One may submit a zip code to retrieve a list of restaurants in their are. Also, one may submit an address to receive coupons by mail.


How do you retrieve an HTML option value using PHP?

You will have to build a form for this: Put the form elements inside this and add a submit button (). Once the user clicks the submit button, all selected and entered values are sent to the file "eval.php" using the get-method, i.e. they are entered into the URL. You may alternatively use the post-method (method="post"), which sends the values "invisibly".In your php script you can now access the variables using the $_GET array. This array is filled with the values using each elements name-attribute as the array index and the element's value as the array value.So if you had an , the entered text is stored at $_GET['foo']. If you used the post-method, the values are stored in the $_POST array.If you want the user to stay at the same page, you can simply specify the form like this: action="?".


How do you submit an HTML?

I don't understand exactly what you mean by that but if you simply save a file with the extension .HTML it will be a HTML file that you can publish online. for eg <HTML> <body> This is my HTML page </body> </HTML> will simply show "This is my HTML page" on your web browser hope i helped


How do you change HTML attribute using HTML dom?

You can change HTML attributes easily. Using Dom that can be done using JavaScript.


How do you apply an array method to an input type-textfield using php if the user inputs 3 on a textfield clicks the submit button then their will be three textfield as a result?

An array method just complicates it, easy just standard This is rough code and not spell proof but generally should work. // Script for processing data <?php $boxes = Array(); $num = $_POST['boxesnum']; // You need a limit to the amount of boxes $limit = 5; whilst ($num <= $limit) { echo "<textfield></textfield><br />"; } ?> // HTML For the form <form method="POST" action="your processing script here"> <input type="text" name="boxesnum" /> <input type="submit" name="submit" />\ </form>