Solved

passing values to certain site.

Posted on 2004-08-22
6
189 Views
Last Modified: 2010-04-06
Hi,

I've created some textfields and textbox and let some values to be keyed in.
Is there anyway to save the values and then pass to them another site which has also some textfields and textbox, and let it process?

0
Comment
Question by:TPoly
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 11863850
assuming there is a script on the oter site abel to process the form , you just make that the action of the form:

<form action="hhtp://othersite.com/somescript.cgi">
<input type=text" name=fields1">
additional inputs etc...
</form>

I don't know what you mean by saving them.  Saving them where?

Cd&
0
 
LVL 11

Expert Comment

by:sciber_dude
ID: 11864726
It depends on how the other site is programmed. If you have editing rights to the other site, it makes it easier.

What i mean is.. http://www.google.com/search?q=test

If you can pass a variable to the form and it automatically displays it, then you can do it.

Again, you will need to answer Cd&'s question as to what you mean by save.

:) SD
0
 
LVL 2

Accepted Solution

by:
rlovetx earned 250 total points
ID: 11865678
The easiest solution would be to pass your form values directly to the processing page of the other website.

Do a "View Source" on the target website and look at their <form> tag.  Get it's method and action and emulate them.

For example:

If the action went to a page, such as www.mypage.com/target.asp and the method=post, then make your form:

<form action="http://www.mypage.com/target.asp" method="post">

If you're only completing part of their form (i.e. your form has 2 fields and theirs has 4 fields), then I think you're stuck unless they work with you.

I think that JavaScript will only allow children pages to update parent pages.  This means that their webpage would have to open a window to your page in order for your page to populate their form.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TPoly
ID: 11866693
however, i do not have direct editing rights to the other site...
what i mean is my app (a Java program) have some values to pass to a telco website (which provides free internet sms)..
once the values from my app pass to the website, it will automatic send the sms...
0
 
LVL 13

Expert Comment

by:davidlars99
ID: 11867205
how about using MSXMLHTTP here take a look at this:

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21102320.html#11862862
0
 

Expert Comment

by:Tony Capewell
ID: 13874399
This has helped me alot, been putting together a web site for my wedding this year, need to pass the gift list number and password through to the John Lewis web site. This worked a dream. Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
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)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

733 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