Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Guys! i hope you will help me, but its too much urgent i need the solution as quick as possiple.
My problem is:
i have a project its web pages are: index.jsp, project.jsp, performance.jsp and teacher.jsp
there is a form
<form name="myForm" action="" method="Post">
Enter your Id:<input type="text" name="id">
Enter your Name:<input type="text" name="FirstName">
<input type="submit" value="submit">
</form>

How want to send or show the data on other all webpages, as they are project.jsp, performance.jsp and teacher.jsp
is there any way, so plz help me as quickly as possible. Thanks in advance
Posted
Comments
joshrduncan2012 4-Apr-14 18:01pm    
Saying it's urgent doesn't get help faster. Just an FYI...

1 solution

A form submits an HTTP request with just one URL defined by the attribute action. For example, in case if your code sample, you send your form data nowhere; its submit button will have no effect. :-)

To send some identical request with multiple URLs (why? why?! won't it be just the abuse due to bad design of your site?), you can use Ajax:
http://en.wikipedia.org/wiki/Ajax_%28programming%29[^],
http://www.adaptivepath.com/ideas/ajax-new-approach-web-applications[^],
http://www.dmoz.org/Computers/Programming/Languages/JavaScript/Ajax[^],
http://www.xul.fr/en-xml-ajax.html[^].

To send an HTTP request using Ajax, you won't need any form. Just pick some data right from some set of control, form an HTTP request, and send it several times in a loop, in each iteration changing only the URL.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900