Solved

passing values to certain site.

Posted on 2004-08-22
6
185 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:TPoly
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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 …

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now