Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Forms: Data Passing

Posted on 2006-04-23
5
Medium Priority
?
163 Views
Last Modified: 2010-04-09
Hi Guys,

I need to pass a set of data to be passed to a page "getmapprocess.asp" situated on the customer site using form. Is there any way that I can pass this automatically once our page being load instead of having to click submit button everytime? Below is the sample code given by my customer:-

<form name=frm method=post action="http://www.3gavl.com/TIY/getmapprocess.asp">
        Transaction_ID:<input name=Transaction_ID value="10001" ><br>
        Userid:<input name=Userid value="testuserid" ><br>
        Request_ID:<input name=Request_ID value="20002" ><br>
        Latitude:<input name=Latitude value="123.456789" ><br>
        Longitude:<input name=Longitude value="234.567890" ><br>
        First_RequestID:<input name=First_RequestID value="1" ><br>
        Other_Request:<input name=Other_Request value="0" ><br>
        Transaction_Time:<input name=Transaction_Time value="2006-04-20 10:20:36.850"><br>
        <INPUT type=submit value=Submit>
 </form>

Appreciate your help here. Thanks a lot.
0
Comment
Question by:rs-250
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 16522947
Somthing like this would do it:

<FORM NAME="frm">
</FORM>

<SCRIPT LANGUAGE="JavaScript"><!--
setTimeout('document.frm.submit()',5000);
//--></SCRIPT>

Obviously you can play around with the value.
0
 

Author Comment

by:rs-250
ID: 16523110
How about this then?

<BODY onLoad="updatequery.submit()">
  <strong>Processing.....</strong><br><br>
  <img src="gif\globe.gif" height="40" width="40" align="middle">
  <form name="updatequery" method="post" action="http://www.3gavl.com/TIY/getmapprocess.asp">
    <cfoutput>
     <input name="userid" value="#userid#" type="hidden">
      <input name="request_id" value="#requestid#" type="hidden">
      <input name="latitude" value="#latitude#" type="hidden">
      <input name="longitude" value="#longitude#" type="hidden">
      <input name="first_requestid" value="#FirstRequest#" type="hidden">
      <input name="other_request" value="#OtherRequest#" type="hidden">
      <input name="transaction_time" value="#CreateODBCDateTime(Now())#" type="hidden">
    </cfoutput>
  </form>
</BODY>
0
 
LVL 28

Expert Comment

by:strickdd
ID: 16527160
Since you are using ASP pages, you can set session variable. This way you can just set the session variables and then Response.Redirect(somewhere.asp).
0
 

Author Comment

by:rs-250
ID: 16531010
Hi,

On my side, we're using CFM while the client on ASP
0
 
LVL 28

Accepted Solution

by:
strickdd earned 1000 total points
ID: 16531604
You can use query strings, but they can be hacked somewhat. The best option would probably be the javascript submit.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question