1

I am trying to build an online application where user can fill my another 2 websites suppose http://www.abc.html and http://xyz.html contact us form using my third website form suppose http://def.html.

Actually, when you fill the form in http://def.html then after clicking on submit button it should give fill the both form presented in another 2 websites.

I am not getting of how to do this? I have researched many times on Google but yet not get satisfied answers except that this could be done via java-script and URL. Here is the URL of what I get so far..

URL- http://www.javascript-coder.com/javascript-form/javascript-get-all-form-objects.phtml

I am new in web developing and trying to build this. Please suggest me how can I achieve this?

Thanks in advance..

20
  • 1
    When the form is submitted, open the other two pages with the form values passed through a query string. Then on the pages, parse the queryString and update the form Commented Apr 8, 2015 at 21:04
  • 1
    yeah, something like http://abc.html?val1='foo'&val2='bar' Using Commented Apr 8, 2015 at 21:06
  • 1
    OP might be usint POST, in which case it is probably not a good idea to put all the form values into the URL. Commented Apr 8, 2015 at 21:07
  • 1
    This sounds like it would be better to use PHP to submit the forms on the other pages. Try looking into curl(). Commented Apr 8, 2015 at 21:10
  • 1
    @Rohitz-zuststay if you don't own the result page(s), you can't inject your form values in them (for obvious reasons). Commented Apr 8, 2015 at 21:15

1 Answer 1

2

I would store them as arrays or strings , then use it for future purpose unless they are not different pages of websites , in that case you have to use cross-site in JSON .

Sign up to request clarification or add additional context in comments.

5 Comments

I don't think you understood the question
yeah i know , i just thought it is the most logical step to store the info anyway unless it is not something like concurrent process or transaction ..
@RaminTaghizada how can can do this for 2 different domains?
and yeah , as it is related to cross-platform environment you have to use JSON , search in google for more info , i think it is helpful .
@RaminTaghizada not true that you must use json, can use CURL and POST between 2 servers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.