Solved

Passing form data

Posted on 2003-11-21
6
264 Views
Last Modified: 2010-04-06
I have a html form on my server that i want to pass to another server that is not mine and pre-populate the fields. I have tried hidden values and putting the input names the same. The remote server's php doesnt accept that and clears the field. Is there a way using either javascript or DHTML or some language to populate the field on the remote server?
0
Comment
Question by:Enslaver
6 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 500 total points
ID: 9799263
No.

If the server won't populate the form when you submit the data, then nothing you can submit to it will work.

JavaScript won't allow you to influence one page from a different domain (with normal security).

You might be able to submit to the script that the server's form submits too instead of the form page, depends on the way it is set up.
0
 
LVL 1

Expert Comment

by:cj_nepenthe
ID: 9799314
I agree with dorward, there's no way you can do this.
IE prevents cross-domain scripting for security reasons.
0
 
LVL 11

Expert Comment

by:L00M
ID: 9799418
I would recommend parsing the form data into XML and passing that on to a web service on the remote server. Assuming you have that much access.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 11

Expert Comment

by:L00M
ID: 9799426
Do you have access to the source on the remote server?
0
 

Author Comment

by:Enslaver
ID: 9799522
No access there, i was thinking maybe i could write a program that the user downloads that will fill in the forms in IE. That seems like too much work for such a simple task. Its not possible to have it in 2 frames and have my javascript in the top frame tell the form in the bottom frame the values? it doesnt have to submit the form.
0
 
LVL 11

Expert Comment

by:L00M
ID: 9799558
Nope, as mentioned, IE prevents that for security reasons. Unless you can get access to the remote server, I'd say you're SOL.

Sorry,
Neil Brewer
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

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

760 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

20 Experts available now in Live!

Get 1:1 Help Now