Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML Submit and process form
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Sunitha
Submit and process form
1 Answer(s)      2 years and 8 months ago
Posted in : HTML


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.


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


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
more Submit buttons in the same form
more Submit buttons in the same form  Can I have two or more Submit buttons in the same form
How can we submit a form without a submit button?
How can we submit a form without a submit button?  How can we submit a form without a submit button
jQuery 'submit' form event
jQuery 'submit' form event In this tutorial, we will discuss about the  'submit' form event of jQuery. In this example... when "submit" event return 'true' to 'form'
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
differences between GET and POST methods in form submit
differences between GET and POST methods in form submit  What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
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 HTML Form Submit Button
Topic : HTML FORM SUBMIT BUTTON Part - 4 The another part which is important... in Html is used to submit form data to the page mentioned in the ACTION attribute... Method, Action and Submit of Html Form. In the next part, we will learn how to get
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
Multiple submit nuttons in single xhtml form - Java Server Faces Questions
Multiple submit nuttons in single xhtml form  Hi, I am facing problem in my JSF application, where in single page , we have two submit buttons. If any one of the button is clicked , then entire form is submitted. How to avoid
Multiple submit buttons in single xhtml form - Java Server Faces Questions
Multiple submit buttons in single xhtml form  Hi all, Here I am attaching the source of the page , which containig two submit buttons. Somebody suggested to keep eaxh button in different form. I am new to JSF, can anyone split
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
Submit Tag (Form Tag) Example
Submit Tag (Form Tag) Example       In this section, we are going to describe the submit tag. The submit tag is a UI... with the form tag to provide asynchronous form submissions. The submit can have three
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 a Request for a Project to be done
Fill this form to Submit a Request for a Project to be done. Our development team will shortly contact you.   Visit Services section to submit your project details
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      
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" /> <
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
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
Submit project to get developed
submit your project by filling up this form. After the submission... is made very simple.  * The Process starts when you submit... and presented here as questions. How do I Submit
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
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
form
form   Can I prevent a form from being submitted again
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
Submit Error - WebSevices
Submit Error  Hello, Tell me the procedure for Storing Hidden values in one Iframe. Send the exact code for this problem
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
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
submit error - WebSevices
submit error  Tell me the combo box validation using java script. Ex: var hire = document.getElementById('cmbHire').value*/ if(document.frmProposal.hire.options[document.frmProposal.hire.selectedIndex].value=='0
 

 

 

DMCA.com