Submit and process form

Ads
 

Submit and process form

how to submit the details and how to go the next page after submitting.please clarify my doubt I don't know how to submit details.

View Answers

April 13, 2012 at 4:39 PM

1)page1.html:

<html>
<form type=get action="page2.html">
<table>
<tr>
<td>First Name:</td>
<td><input type=text name=firstname size=10></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type=text name=lastname size=10></td>
</tr>
<tr>
<td>Age:</td>
<td><input type=text name=age size=10></td>
</tr>
<tr>
<td colspan=2><input type=submit value="Submit">
</td>
</tr>
</table>
</form>
</html>

2)page2.html:

<html>
<script LANGUAGE="JavaScript">
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}
params = getParams();
firstname = unescape(params["firstname"]);
lastname = unescape(params["lastname"]);
age = unescape(params["age"]);
document.write("firstname = " + firstname + "<br>");
document.write("lastname = " + lastname + "<br>");
document.write("age = " + age + "<br>");
</script>
</html>

Ads









Related Tutorials/Questions & Answers:
submit a form
submit a form  How can we submit a form without a submit button
Ajax form submit
submit. I want quick tutorial that will help me in writing form submit code in Ajax. Thanks   Hi, Read jQuery 'submit' form event tutorial. This tutorial teaches you how to submit form using jQuery framework. Thanks
Advertisements
Process HTML FORM data
Process HTML FORM data  Can a JSP page process HTML FORM data?   Yes. Preemptive termination of request processing on an error condition is a good way to maximize the throughput of a high-volume JSP engine. The trick
php form having 2 submit buttons
php form having 2 submit buttons  i have a php form and some text boxes.and 2 buttons"approve" and "disapprove". when i click on approve button the data from form should go in mysql database and mail should go to appropiate
How to save form fields into the MySql Database without submit button in jsp?
How to save form fields into the MySql Database without submit button in jsp?  I want to store user inputs into the database using javasccript or ajax or jqury but without submit button. Form Contains three fields
Action Submit Html
;  Action Submit in Html is used to submit a form, When a user clicks on a submit button, the form is sent to the specific address... the input goes to a page called submit. asp which will further process it. Here
insertin form data into databse and blank all form field when click on submit button
insertin form data into databse and blank all form field when click on submit button  sir, i useing the jsp. i want insert form data into Ms-Access database when click on submit button and blank all form field after inserting
form submit in ajax
JSTL : Submit Form TextField
JSTL : Submit Form TextField     ... how we can retrieve multiple values from the form.  Firstly we have to make one jsp page which contains a form in which we will enter the values
Submit Articles
process to submit your articles at RoseIndia.net. Articles Submission Process... the Article Submission form to submit the article for publication. Benefits... Submit Articles      
HTML Post Form
HTML Post Form       The HTML process the submission of form in two different ways. In HTML... for storing, updating, storing and sending E-mail. When a user process the submit
submit button
submit button  <p>hi I am trying to insert record in database...;body> <form method="post" action="Insert.doPost"> Enter...; <input type="submit" value="Insert" name="login" /> <
Submit Your Article
we have created online form to easily submit your articles. Please follow the following Articles Submission process to submit your articles... in response to one of our posts or submit your article through this form
disable and enable the submit buttons
disable and enable the submit buttons  i have two summit button in my form. one is disabled and other is navigating to the other page. after 3 submissions of the submit button the disabled one must be enabled and the enabled one
Disabling submit button using jQuery
Disabling submit button using jQuery  Hello Sir I want to know - is there any way or approach to disable client side form's "Submit" button... be more useful to do so on form submission: $('form').submit(function
ModuleNotFoundError: No module named 'submit'
ModuleNotFoundError: No module named 'submit'  Hi, My Python... 'submit' How to remove the ModuleNotFoundError: No module named 'submit'... to install padas library. You can install submit python with following command
Struts application two submit button
Struts application two submit button  Hai, i'm new in struts..." %> <html:form action="/login" method="post" styleClass="javachap...;html:submit tabindex="6" styleClass="btTxt"> <bean
JavaScript submit method
submit button  Submitting form programmatically using JavaScript. ... the submit() method we have created a form named "frm". When we click...;script> tags. This function at last submits the form by calling submit
Process in Java
Process in Java  how can I execute a java program as a process which i can monitor it in the task manager to see the cpu usage
JSP Submit Button
JSP Submit Button  Sir, I have a JSP page with 2 Submit button, both calls doPost method of same servlet. If I click any submit button the text box value get refreshed and set to null or blank, that should not happen. Plz help
Multipage form
Multipage form  I have a multipage form in php with 2 pages wnhen i submit the form data from both the pages should go in database how should i pass teh data from 1st page to 2nd page and then put the entire form data in mysql
Submit Articles for Free
your rank in search engines. Fill out the following form to submit articles... Submit Articles for Free      ....   Submit Articles To submit an article for possible inclusion
Process Class
Process Class  What is Process class?? How can destroy();, exitValue();, getErrorStream(); getInputStream(); waitFor(); methods be used.....??please write a code which discribes these methods
image on submit button
image on submit button  i need to set an image on submit button. In javascript we can create a button like.. <a href="javascript:;" class="button...: transparent; cursor: pointer; or input[type=submit] { background: transparent
Click On Images of Submit Button Perform Action
Click On Images of Submit Button Perform Action  I have login page in which insert of submit button i used image. Therefor on Click of image i have to validate form , link with database and goto the next page
Submit button to MySQL database?
Submit button to MySQL database?  Need help linking html code...="text" name="Level" /> </form> <td><input type="submit" name="Submit" value="Submit"></td> </body> </html> <
Submit button to MySQL database?
Submit button to MySQL database?  Need help linking html code...="text" name="Level" /> </form> <td><input type="submit" name="Submit" value="Submit"></td> </body> </html> <
multiple submits, single form.
multiple submits, single form.  is it possible to use multiple submit buttons in a single form?   Thank you
html code for student registration form
, radio button, Reset button and Submit Form button. We have used Reset button... correctly, submit form adds the data. A programmer can use this submit form as he...html code for student registration form Here is an example of html code
What is HTML Form?
which will process the data. Form Method There is various ways to send the data... the user on HTML page. Form Submit button The tag <input type="submit" name... What is HTML/Web Form in HTML? In this tutorial we are going
Add jars to a Spark Job spark-submit
Add jars to a Spark Job spark-submit  Add jars to a Spark Job spark-submit I want to submit some dependency jars along with the code jar file with spark-submit. How to add jar to the Spark Job Submit process? Thanks   

Ads